Skip to content

Re-enable audience validation #808

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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 Copilot AI review requested due to automatic review settings March 31, 2025 23:07
Copy link

@Copilot 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.

3 participants