Skip to content

Conversation

@ksaaf
Copy link
Contributor

@ksaaf ksaaf commented Mar 7, 2025

This PR removes from AcquireTokenForClientParameterBuilder.Validate checks for 'common' for Aad and Dsts Authority Types.

Fixes #5093

Changes proposed in this request

  • Removes from AcquireTokenForClientParameterBuilder.Validate checks for 'common' for Aad and Dsts Authority Types.

Testing

  • Updates unit tests

Performance impact

  • N/A since it is removing code.

Documentation

  • All relevant documentation is updated.

@ksaaf ksaaf requested a review from a team as a code owner March 7, 2025 00:36
@ksaaf ksaaf requested a review from gladjohn March 7, 2025 00:37
@ksaaf
Copy link
Contributor Author

ksaaf commented Mar 7, 2025

@microsoft-github-policy-service agree company="Microsoft"

Copy link
Contributor

@gladjohn gladjohn left a comment

Choose a reason for hiding this comment

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

Looks good @ksaaf. From the tracking bug, I understand we need to make sure /consumers work. Do we have a test to make sure the happy path works for /consumers

@ksaaf
Copy link
Contributor Author

ksaaf commented Mar 7, 2025

Looks good @ksaaf. From the tracking bug, I understand we need to make sure /consumers work. Do we have a test to make sure the happy path works for /consumers

@gladjohn - Please see ConfidentialClientApplicationTests.GetAuthorizationRequestUrl_WithConsumerInCreate_ReturnsConsumers. Let me know if we are still missing a test case here.

@ksaaf ksaaf requested a review from gladjohn March 7, 2025 18:43
@ksaaf ksaaf requested review from bgavrilMS and rayluo March 11, 2025 18:34
@AzureAD AzureAD deleted a comment from kennyoye88 Mar 12, 2025
Copy link
Contributor

@gladjohn gladjohn left a comment

Choose a reason for hiding this comment

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

looks good @ksaaf

@ksaaf ksaaf changed the title For Aad and Dsts Authority, raise error for 'organizations' tenant like 'common' For Mtls, do not check for Aad and Dsts Authority type and 'organizations' or 'common' tenant Mar 14, 2025
@ksaaf ksaaf merged commit cd5172d into main Mar 14, 2025
7 checks passed
@ksaaf ksaaf deleted the ksaaf/issue-5093 branch March 14, 2025 22:58
gladjohn pushed a commit that referenced this pull request Mar 16, 2025
…ions' or 'common' tenant (#5174)

This PR removes from AcquireTokenForClientParameterBuilder.Validate checks for 'common' for Aad and Dsts Authority Types.

See conversation in this PR.
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.

[Bug] WithMtlsProofOfPossession() Should Fail for /organizations Authority

5 participants