Azure-Samples / active-directory-dotnet-graphapi-web

A .NET 4.5 MVC web app that demonstrates how to query the Azure AD Graph API using the Azure AD Graph Client Library
82 stars 68 forks source link

Updating Web.config to support Certificate Credentials #29

Closed shawntabrizi closed 8 years ago

shawntabrizi commented 8 years ago

This is an update to add a new for "ida:CertName" which allows a user to use a certificate to request an access token. This corresponds to a change in Startup.Auth.cs which checks if the CertName value is populated, i.e. ( certName.Length != 0). If it is, the application will attempt to authenticate using a client certificate. If the CertName value is empty, it will use the AppKey to authenticate instead.