-
Notifications
You must be signed in to change notification settings - Fork 218
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
renaming #701
renaming #701
Conversation
ClientId = AppServiceAuthenticationInformation.ClientId, | ||
ClientSecret = AppServiceAuthenticationInformation.ClientSecret, | ||
Instance = AppServiceAuthenticationInformation.Issuer, | ||
ClientId = AppServicesAuthenticationInformation.ClientId, |
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.
we should consider some refactoring in tokenAcqusition so we don't have to repeat this code. not something for this PR, but something for the future we shoudl consider.
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.
Thanks so much @jennyf19
@@ -53,10 +53,10 @@ protected override Task<AuthenticateResult> HandleAuthenticateAsync() | |||
ClaimsPrincipal claimsPrincipal = new ClaimsPrincipal(new ClaimsIdentity( | |||
jsonWebToken.Claims, | |||
idp, | |||
"name", // v1.0 | |||
Constants.NameClaim, // v1.0 |
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.
That makes me think that we need to check the "ver" claim, and use the right constant (NameClaim or prefered_username, depending on the version.
* First step of the integration of Easy-auth with Microsoft.Identity.Web * Sign-in and Sign-out now work correctly * Reverting changes to TokenAcquisition * Updating the EasyAuth code and adding debugging capabilities * Improving the developer experience. * Now works when deployed with EasyAuth "on" * Cleaning-up * Removing the test project * Fixing * Update src/Microsoft.Identity.Web/EasyAuth/AppServiceAuthenticationBuilderExtensions.cs Co-authored-by: jennyf19 <jeferrie@microsoft.com> * Update src/Microsoft.Identity.Web/EasyAuth/AppServiceAuthenticationBuilderExtensions.cs Co-authored-by: jennyf19 <jeferrie@microsoft.com> * Update src/Microsoft.Identity.Web/EasyAuth/AppServiceAuthenticationInformation.cs Co-authored-by: jennyf19 <jeferrie@microsoft.com> * Update src/Microsoft.Identity.Web/EasyAuth/AppServiceAuthenticationDefaults.cs Co-authored-by: jennyf19 <jeferrie@microsoft.com> * renaming (#701) * renaming * a few more edits and name changes * fix error + warnings * Adding the test app. * Improvements: - in the authentication handler, processes both v1.0 and v2.0 IdTokens - Fixing CA warnings - Adding a page (Debugging) which explains how to debug the EasyAuth integration locally. * Addressing PR feedback Co-authored-by: jennyf19 <jeferrie@microsoft.com>
No description provided.