Skip to content
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

Merged
merged 3 commits into from
Oct 20, 2020
Merged

renaming #701

merged 3 commits into from
Oct 20, 2020

Conversation

jennyf19
Copy link
Collaborator

No description provided.

@jennyf19 jennyf19 requested a review from jmprieur October 20, 2020 16:06
ClientId = AppServiceAuthenticationInformation.ClientId,
ClientSecret = AppServiceAuthenticationInformation.ClientSecret,
Instance = AppServiceAuthenticationInformation.Issuer,
ClientId = AppServicesAuthenticationInformation.ClientId,
Copy link
Collaborator Author

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.

Copy link
Collaborator

@jmprieur jmprieur left a 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
Copy link
Collaborator

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.

@jmprieur jmprieur merged commit ee0c476 into jmprieur/EasyAuthWitoutTestProject Oct 20, 2020
jmprieur added a commit that referenced this pull request Oct 20, 2020
* 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>
@jmprieur jmprieur deleted the jennyf/easyAuthName branch November 2, 2020 12:25
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.

2 participants