0

Problem with Startup.cs setup, according to documentation I should add

services.AddAuthentication()
    .AddCertificate(options =>
    {
        options.AllowedCertificateTypes = CertificateTypes.All;
        options.RevocationMode = X509RevocationMode.NoCheck;
    });

But I got error:

'AuthenticationBuilder' does not contain a definition for 'AddCertificate' and there is no extension method 'AddCertificate'.

In samples code setup IdentityServer(HOST)/ConsoleMTLSClient it works .

svyat1s
  • 868
  • 9
  • 12
  • 21

1 Answers1

0

You have to add the Microsoft.AspNetCore.Authentication.Certificate NuGet package.

Tore Nestenius
  • 16,431
  • 5
  • 30
  • 40