Skip to content

Conversation

gladjohn
Copy link
Contributor

@gladjohn gladjohn commented Sep 8, 2025

[draft] mTLS POP using Pop Authentication Operation

DO NOT MERGE THIS

@@ -127,6 +127,15 @@ public string Claims
}
}

internal void OverrideAuthenticationScheme(IAuthenticationOperation authenticationOperation)
{
if (IsMtlsPopRequested)
Copy link
Member

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

Copy link
Contributor Author

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"/>.
Copy link
Contributor Author

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 }
Copy link
Contributor Author

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

Copy link
Member

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?

Copy link
Contributor Author

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.

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