Skip to content

Conversation

@adityamandaleeka
Copy link
Member

Not sure why this was disabled in the first place...

This pull request includes a small change to AuthenticationExtensions.cs to remove the line that disables audience validation in token validation parameters.

@halter73

Copilot AI review requested due to automatic review settings March 31, 2025 23:07
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request re-enables audience validation for token handling in the authentication configuration.

  • Removes the explicit disabling of audience validation.
  • Restores default behavior for token audience checks.
Comments suppressed due to low confidence (1)

src/eShop.ServiceDefaults/AuthenticationExtensions.cs:47

  • Ensure that token validation tests now include scenarios for audience validation to verify that tokens with an incorrect or missing audience are properly rejected.
options.TokenValidationParameters.ValidateAudience = false;

@danmoseley
Copy link
Member

LGTM, but did ancient github history help?

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.

4 participants