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

CAE support for azidentity #19942

Merged

Conversation

chlowell
Copy link
Member

@chlowell chlowell commented Feb 3, 2023

This is the azidentity side of #14931. Credentials must do two things to enable the end-to-end feature: specify client capability "CP1" to indicate the client can handle claims challenges, and pass claims through GetToken to MSAL. We send CP1 by default so applications are secure by default. Doing so has no effect when the RP doesn't support CAE or the tenant isn't configured for it. However, we provide an environment variable opt out for applications that can't handle claims challenges, for example because they need to upgrade a client library first.

Copy link
Member

@JeffreyRichter JeffreyRichter left a comment

Choose a reason for hiding this comment

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

I see a lot of WithXxx functions (Claims, SilentAccount, TenantID). We don't usually have this WithXxx pattern in Go (except maybe for Context). Do customers use this or is this internal implementation for us and it could be changed in a non-breaking way?

Do these WithXxx functions treat the input as immutable and return immutable results or modify the receiver of the WithXxx function? I'm OK with the former (what Context does) and not OK with the latter.

@chlowell
Copy link
Member Author

chlowell commented Feb 3, 2023

The With* functions are MSAL's options API. None is part of our public API. Are you still curious about their implementation?😆

@JeffreyRichter
Copy link
Member

No, not anymore. Thanks.

@chlowell chlowell merged commit 941d9be into Azure:release/azidentity-1.3.0-beta Feb 6, 2023
@chlowell chlowell deleted the cae-azidentity branch February 6, 2023 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants