5 writes to CertificateHeader
Microsoft.AspNetCore.Authentication.Test (1)
CertificateTests.cs (1)
893
options.
CertificateHeader
= headerName;
Microsoft.AspNetCore.HttpOverrides.Tests (4)
CertificateForwardingTest.cs (4)
22
.AddCertificateForwarding(o => o.
CertificateHeader
= null);
32
.AddCertificateForwarding(o => o.
CertificateHeader
= "");
124
services.AddCertificateForwarding(options => options.
CertificateHeader
= "X-ARR-ClientCert");
162
services.AddCertificateForwarding(options => options.
CertificateHeader
= "some-random-header");
3 references to CertificateHeader
Microsoft.AspNetCore.HttpOverrides (3)
CertificateForwardingMiddleware.cs (2)
42
/// Looks for the presence of a <see cref="CertificateForwardingOptions.
CertificateHeader
"/> header in the request,
49
var header = httpContext.Request.Headers[_options.
CertificateHeader
];
CertificateForwardingServiceExtensions.cs (1)
26
services.AddOptions<CertificateForwardingOptions>().Validate(o => !string.IsNullOrEmpty(o.
CertificateHeader
), "CertificateForwarderOptions.CertificateHeader cannot be null or empty.");