Skip to content
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

BuiltinBotFrameworkAuthentication.GetAppId try to check (appid/azp) before (aud) #6724

Closed
wants to merge 8 commits into from
Closed

BuiltinBotFrameworkAuthentication.GetAppId try to check (appid/azp) before (aud) #6724

wants to merge 8 commits into from

Conversation

fangyangci
Copy link
Contributor

@fangyangci fangyangci commented Jan 2, 2024

Fixes #6725

Description

BuiltinBotFrameworkAuthentication.GetAppId get appid from claim appid/azp before aud.
Because token from AAD also contains claim aud, but token from ABS don't have claim appid/azp.

While using User Assigned Managed Identity,
after Microsoft.Identity.Client version update to 4.55 from 4.50 (#6643)
The aud won't be appid.

Specific Changes

BuiltinBotFrameworkAuthentication.GetAppId will try to get appid from claim (appid/azp) than claim(aud).

Testing

ABS token example:
image

User Assigned Managed Identity AAD token example:
image

@fangyangci fangyangci requested a review from a team as a code owner January 2, 2024 13:21
@fangyangci fangyangci changed the title Fix us gov single tenant BuiltinBotFrameworkAuthentication.GetAppId try to check (appid/azp) before (aud) Jan 2, 2024
@fangyangci fangyangci closed this Jan 3, 2024
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.

BuiltinBotFrameworkAuthentication.GetAppId try to check (appid/azp) before (aud)
1 participant