Skip to content

Conversation

Avery-Dunn
Copy link
Contributor

@Avery-Dunn Avery-Dunn commented Sep 9, 2025

This issue in the identity web repo exposed a problem in the issuer validation steps: AzureAD/microsoft-identity-web#3450

Originally the validation step would pass if the authority "started with" the issuer, i.e. it matched the scheme, host, and start of the path. However, there are cases where the path could be different but it still represents a valid authority/issuer pair, such as when the authority uses "organizations" but the issuer uses the actual tenant.

While it might be better to use the authority API instead of oidcAuthority in that scenario we don't require it, and as AzureAD/microsoft-identity-web#3450 shows the current validation can be a breaking change.

This PR adjust the issuer validation to only check the HTTP scheme and host, and adds a test confirming that behavior. The existing tests should still pass.

@Avery-Dunn Avery-Dunn requested a review from a team as a code owner September 9, 2025 17:14
@Avery-Dunn Avery-Dunn changed the title Avdunn/issuer validation adjustment Adjust issuer validation to accept differing paths Sep 9, 2025
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