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

Adding ClientCertificateCredential to Azure.Idenity #6636

Merged
merged 3 commits into from
Jun 19, 2019

Conversation

schaabs
Copy link
Member

@schaabs schaabs commented Jun 19, 2019

No description provided.

@schaabs schaabs requested review from jsquire, tg-msft and chlowell June 19, 2019 18:02
Copy link
Member

@jsquire jsquire 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 to me.


request.Method = HttpPipelineMethod.Post;

request.Headers.SetValue("Content-Type", "application/x-www-form-urlencoded");
Copy link
Member

Choose a reason for hiding this comment

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

nit: Is there a member in Azure.Core for form types? If not, maybe we should consider adding it there to keep building that out.

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed. I've added and issue to track this, #6646. I'll make this change in a separate PR since it's a change to Azure.Core and requires rebuilding everything.

@schaabs schaabs merged commit d91376d into Azure:master Jun 19, 2019
@@ -23,7 +25,8 @@ internal class IdentityClient
private readonly IdentityClientOptions _options;
private readonly HttpPipeline _pipeline;
private readonly Uri ImdsEndptoint = new Uri("http://169.254.169.254/metadata/identity/oauth2/token");
private readonly string MsiApiVersion = "2018-02-01";
private const string MsiApiVersion = "2018-02-01";
Copy link
Member

Choose a reason for hiding this comment

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

Irrelevant to this PR but this is the IMDS version. App Service MSI will 400 if you use it there (expects 2017-09-01).

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.

3 participants