Quantcast
Channel: WebAPI – leastprivilege.com
Viewing all articles
Browse latest Browse all 228

Support for X.509 Client Certificates in Thinktecture.IdentityModel for Web API

$
0
0

Reblogged from www.leastprivilege.com:

Another RTM feature I was waiting for is (reasonable) SSL client certificate support in Web API.

Just like all the other authentication methods, you configure client certificate support on the AuthenticationConfiguration object. The following code configures the certificate to chain validation + check for a specific issuer subject name:

config.AddClientCertificate(

ClientCertificateMode.ChainValidationWithIssuerSubjectName,

"CN=TestCA");

Validation modes are:

  • Chain validation only
  • Peer validation…

Read more… 119 more words

An old post. But since I am writing about AuthenticationHandler..this is still relevant!

Viewing all articles
Browse latest Browse all 228

Trending Articles