Skip to content
Discussion options

You must be logged in to vote

Hi @xaberue,

The issue is most likely related to the redirect URI: when performing an OAuth2 or OIDC flow, the identity provider (Duende IdentityServer in this case) needs to know where to return back to.

After trying your sample repo locally and trying a few things, I believe the redirect URI should be "https://localhost:7125/scalar/", including the slash at the end. When I tried to configure the redirect URI without the trailing slash, Scalar's UI just reloaded without parsing the incoming request.

When you configure the OAuth2 flow, I would also suggest including at least the "openid" scope to retrieve the user's subject ID claim:

public static void ConfigureOpenApiWithScalarUI(this We…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wcabus
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants