Skip to content

Fix IDX21323: RequireNonce is 'False' during token refreshClient#240

Merged
guardrex merged 3 commits intomainfrom
halter73/53585
Mar 9, 2024
Merged

Fix IDX21323: RequireNonce is 'False' during token refreshClient#240
guardrex merged 3 commits intomainfrom
halter73/53585

Conversation

@halter73
Copy link
Copy Markdown
Member

@halter73 halter73 commented Mar 8, 2024

See https://security.stackexchange.com/questions/147529/openid-connect-nonce-replay-attack and DuendeArchive/IdentityServer4#2180 for the purpose of the nonce and why it's unnecessary for the token refresh.

This also switches to using OpenIdConnectOptions.Backchannel rather than its own HttpClient so it gets an OIDC-specific user agent and includes any other customizations that might be necessary for communicating with the given OIDC provider.

Fixes dotnet/aspnetcore#53585

@halter73 halter73 requested a review from guardrex March 8, 2024 23:48
Copy link
Copy Markdown
Contributor

@guardrex guardrex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only updated the namespaces to match the rest of the app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8.0 BlazorWebAppOidc IDX21323: RequireNonce is 'False'

2 participants