-
Notifications
You must be signed in to change notification settings - Fork 1k
Microsoft.Identity.Web refactor #272
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- AddMicrosoftIdentityPlatformAuthentication => AddSignIn - AddMsal => AddWebAppCallProtectedWebApi
…he comfort AzureAD layers) This code does not work yet ....
Added logic to check if authority has v2.0 before modifying it
* Renaming GetAccessTokenOnBehalfOfUserAsync into GetAccessTokenForUserAsync as the OnBehalfOfUser was telling too much about OBO, whereas in the case of a Web App this was not the OBO flow. * Addressing PR feedback
# Conflicts: # 1-WebApp-OIDC/1-2-AnyOrg/README-1-1-to-1-2.md # 1-WebApp-OIDC/1-5-B2C/Startup.cs # 1-WebApp-OIDC/1-5-B2C/WebApp-OpenIDConnect-DotNet.sln # 2-WebApp-graph-user/2-1-Call-MSGraph/Properties/launchSettings.json # 5-WebApp-AuthZ/5-1-Roles/README-incremental-instructions.md # Microsoft.Identity.Web/WebAppServiceCollectionExtensions.cs
…ns in the same class Add AuthorityHelpers Helper method to check if authority is V2 Helper method to build AAD or B2C AuthorityHelpers Refactored AddSignIn so parameters shows in a logical order
Added B2C exclusive OIDC event handlers Fixed 1-5 samples to use Microsoft.Identity.UI project
# Conflicts: # 1-WebApp-OIDC/1-2-AnyOrg/README-1-1-to-1-2.md # 2-WebApp-graph-user/2-1-Call-MSGraph/AspnetCoreWebApp-calls-Microsoft-Graph.sln # 5-WebApp-AuthZ/5-1-Roles/README-incremental-instructions.md # Microsoft.Identity.Web/ClaimsPrincipalExtensions.cs # Microsoft.Identity.Web/TokenAcquisition.cs # Microsoft.Identity.Web/TokenCacheProviders/Session/MsalSessionTokenCacheProvider.cs # Microsoft.Identity.Web/WebAppServiceCollectionExtensions.cs
jennyf19
approved these changes
Jan 30, 2020
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 for the quick updates, @TiagoBrenck
jennyf19
reviewed
Jan 30, 2020
jennyf19
reviewed
Jan 30, 2020
jennyf19
reviewed
Jan 30, 2020
jennyf19
reviewed
Jan 30, 2020
8 tasks
Added B2C Password Reset Policy ID to app settings.
Added B2C Password Reset Policy
# Conflicts: # Microsoft.Identity.Web/AuthorizeForScopesAttribute.cs
14 tasks
* Experiment for a B2C Web app calling a B2C Web API. Needs more work. * Test and fix B2C web app calls web api scenario Fix issue in AadIssuerValidator when certains claims are not present (ex. policy) in the token Fix bug w/scopes and scopeKeySection Send "client_info=1" to request to get client info back from AAD B2C Add ClientInfo class + methods to pull out the TenantId from the ClientInfo Add full value to UserFlow as it was not picking up on short version In TokenAcquisition, check first for b2c and then do null tenant and then tenant specific, was using the wrong authority for b2c previously Fix bug in determining audience validation * Fixing missing references * Uncommenting a needed line * Fixing a build break * Fixing the configuration and a problem brought bad a by merge by jmprieur * add uitid to the claims for b2c * moving Web app calling Web API with B2C in own folder * Reading the 4-1-MyOrg folder * Update README.md Co-authored-by: jennyf19 <jeferrie@microsoft.com>
- Removed DisallowsSameSiteNone from WebAppServiceCollectionExtensions because it got moved to another class - Added edit profile button on login bar - Fixed merge on AuthorizeForScopesAttribute - Added options.TokenValidationParameters.NameClaimType = "name" on web api Startup to fix todo list
…from the issuer) (#302)
Thanks @TiagoBrenck @jennyf19 @kalyankrishna1 for this big achievement! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Intro
This PR might look like a beast, but it is less scary than you think. A lot of files got changed because this branch also includes the renaming of the methods:
AddMicrosoftIdentityPlatformAuthentication
,AddMsal
andGetAccessTokenOnBehalfOfUserAsync
.I will add a comment on each file that have been modified on the refactoring, explaining the "why's"
Purpose
The mainly 3 purpose of this change are:
OpenIdConnectOptions
andJwtBearerOptions
classes for configurationThe byproduct of this refactoring includes, but is not limited to:
OpenIdConnectOptions
Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
Pending tasks
RemoveAccountAsync
on B2C scenario