We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Which Version of Microsoft Identity Web are you using ? preview
Where is the issue?
Other? - please describe;
Repro As a developer, I might want to have my valid audience to be https://<tenantDomain> instead of api://<guid>.
https://<tenantDomain>
api://<guid>
For that I could use:
services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme) .AddProtectedWebApi("AzureAd", Configuration, options => { Configuration.Bind("AzureAD", options); options.TokenValidationParameters.ValidAudiences = new List<string> { "https://<myTenantDomain>" }; });
Expected behavior Have the options.TokenValidationParameters.ValidAudiences set with my custom option.
Actual behavior The method EnsureValidAudiencesContainsApiGuidIfGuidProvided() is overwriting my audiences in its logic.
EnsureValidAudiencesContainsApiGuidIfGuidProvided()
Possible Solution Have EnsureValidAudiencesContainsApiGuidIfGuidProvided() to extend my options and not overwrite it.
Additional context/ Logs / Screenshots Add any other context about the problem here, such as logs and screenshots.
The text was updated successfully, but these errors were encountered:
included in 0.1.1-preview release
Sorry, something went wrong.
pmaytak
Successfully merging a pull request may close this issue.
Which Version of Microsoft Identity Web are you using ?
preview
Where is the issue?
Other? - please describe;
Repro
As a developer, I might want to have my valid audience to be
https://<tenantDomain>
instead ofapi://<guid>
.For that I could use:
Expected behavior
Have the options.TokenValidationParameters.ValidAudiences set with my custom option.
Actual behavior
The method
EnsureValidAudiencesContainsApiGuidIfGuidProvided()
is overwriting my audiences in its logic.Possible Solution
Have
EnsureValidAudiencesContainsApiGuidIfGuidProvided()
to extend my options and not overwrite it.Additional context/ Logs / Screenshots
Add any other context about the problem here, such as logs and screenshots.
The text was updated successfully, but these errors were encountered: