-
Notifications
You must be signed in to change notification settings - Fork 249
Fix #2456 #2489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #2456 #2489
Conversation
…family" warnings by changing the order of the frameworks (older to newer) as advised in https://www.primordialcode.com/blog/post/referenced-project-targeted-different-framework-family
| Services, | ||
| initialScopes, | ||
| ConfigureMicrosoftIdentityOptions, | ||
| null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| null, | |
| null, // already initialized |
|
Will this fix the issue for .NET 6? Also, when will it be released? I'm running 2.14.0 right now. |
|
It's fixed in 2.15.1, @duanepfeiffer |
|
@jmprieur I am getting the same error "AADSTS54005: OAuth2 Authorization code was already redeemed, please retry with a new valid code or use an existing refresh token." after updating Version to 2.15.2.0.. It was fine for 1 month.... 09:53:35] [Error] [Microsoft.Identity.Web.TokenAcquisition] False MSAL 4.56.0.0 MSAL.NetCore .NET 6.0.15 Microsoft Windows 10.0.17763 [2023-11-17 09:53:35Z - 77da2591-ddf7-40c0-adf6-c6ccf4c43238] Exception type: Microsoft.Identity.Client.MsalUiRequiredException at Microsoft.Identity.Client.OAuth2.OAuth2Client.ThrowServerException(HttpResponse response, RequestContext requestContext) [09:53:35] [Error] [] OnAuthenticationFailed AADSTS54005: OAuth2 Authorization code was already redeemed, please retry with a new valid code or use an existing refresh token. Trace ID: ecd07edb-bb52-4b2b-8c15-ee2f7f4e2600 Correlation ID: 77da2591-ddf7-40c0-adf6-c6ccf4c43238 Timestamp: 2023-11-17 09:53:36Z |
Fixes delegate called twice in AddMicrosoftIdentityWebApp (and hence TokenValidated event called twice)
In a web app using the initialization with delegates (not by configuration), and using EnableTokenAcquisitionToCallDownstreamApi, the delegate was called twice. This is because the configuration of the MicrosoftIdentityOptions was needed in the MISE EnableTokenAcquisitionToCallDownstreamApi method, whereas IdWeb AddMicrosoftIdentityWebApp had called it already.
Description
Fixes #2456