-
Notifications
You must be signed in to change notification settings - Fork 11
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
added support for v2.0 #17
base: master
Are you sure you want to change the base?
Conversation
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.
LGTM
Provided an alternative.
TokenValidationParameters = new TokenValidationParameters | ||
{ | ||
SaveSigninToken = true, | ||
ValidAudiences = webApiConfig.ValidAudiences | ||
ValidAudiences = webApiConfig.ValidAudiences, | ||
ValidIssuers = CommonUtil.BuildValidIssuers(webApiConfig) |
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.
Did you consider using ValidateIssuer instead ? (and set it to the AadIssuerValidator)?
https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/blob/039d09b7bc4c1671e1c4093d5a62d307c2f96935/src/Microsoft.IdentityModel.Validators/AadIssuerValidator/AadIssuerValidator.cs#L155-L156
Same for the other PR, btw
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.
@jmprieur Thank you, I will check it
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.
thats what he will do next
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.
@jmprieur done proposed change
@jmprieur can we close it please? |
@aremo-ms : you want to close this PR? |
added valid issuers to help using v2.0 token