The default oauth2 redirect URL is not autofilled when Scopes are not present in an OpenAPI spec (Scalar.AspNetCore)
Author: timohermansCreated Oct 1, 2026Updated Oct 1, 2026
Labelspackage: @scalar/api-clientauth
What happens?
When you do not set any scopes on a OAuth2 flow, the Scalar UI will not set the default redirect URL.
See the attached ASP.NET Web API project below. When you (un)comment the scopes and restart the app you can see that suddenly the redirect URL does (not) get set.
Note that I've tried the same openapi document in https://sandbox.scalar.com/, but this does not occur here. Perhaps because it only happens on the initial render.
What did you expect to happen?
The default redirect url should always get a default value, regardless of the scopes.
OpenAPI Document
No response
Source: scalar/scalar