-
Notifications
You must be signed in to change notification settings - Fork 373
[draft] mTLS POP using Pop Authentication Operation #5463
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
base: main
Are you sure you want to change the base?
Conversation
@@ -127,6 +127,15 @@ public string Claims | |||
} | |||
} | |||
|
|||
internal void OverrideAuthenticationScheme(IAuthenticationOperation authenticationOperation) | |||
{ | |||
if (IsMtlsPopRequested) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed offline with Gladwin. this check will be moved to the MSI request
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the feedback, Travis
namespace Microsoft.Identity.Client.AuthScheme.PoP | ||
{ | ||
/// <summary> | ||
/// This is just a demo class. Real implementation of MTLS PoP should use <see cref="MtlsPopAuthenticationOperation"/>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a demo class. Real implementation of MTLS PoP should use MtlsPopAuthenticationOperation
{ | ||
return new Dictionary<string, string> | ||
{ | ||
{ OAuth2Parameter.TokenType, Constants.BearerTokenType } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Managed identity only returns a Bearer Token now, hence using BearerTokenType
. Final implementation needs to use MtlsPopAuthenticationOperation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What token_type gets put on the wire?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mtls_pop
when the new .WithMtlsPop API is used.
[draft] mTLS POP using Pop Authentication Operation
DO NOT MERGE THIS