KestrunHostAuthnExtensions.AddWindowsAuthentication method (1 of 3)
Adds Windows Authentication to the Kestrun host.
The authentication scheme name is AuthenticationScheme. This enables Kerberos and NTLM authentication.
public static KestrunHost AddWindowsAuthentication(this KestrunHost host)
| parameter | description |
|---|---|
| host | The Kestrun host instance. |
Return Value
The configured KestrunHost instance.
See Also
- class KestrunHost
- class KestrunHostAuthnExtensions
- namespace Kestrun.Hosting
KestrunHostAuthnExtensions.AddWindowsAuthentication method (2 of 3)
Adds Windows Authentication to the Kestrun host.
The authentication scheme name is AuthenticationScheme. This enables Kerberos and NTLM authentication.
public static KestrunHost AddWindowsAuthentication(this KestrunHost host,
string authenticationScheme = "Negotiate", string? displayName = "Windows Authentication",
Action<WindowsAuthOptions>? configureOptions = null)
| parameter | description |
|---|---|
| host | The Kestrun host instance. |
| authenticationScheme | The authentication scheme name (default is NegotiateDefaults.AuthenticationScheme). |
| displayName | The display name for the authentication scheme. |
| configureOptions | The WindowsAuthOptions object to configure the authentication. |
Return Value
The configured KestrunHost instance.
See Also
- class KestrunHost
- class WindowsAuthOptions
- class KestrunHostAuthnExtensions
- namespace Kestrun.Hosting
KestrunHostAuthnExtensions.AddWindowsAuthentication method (3 of 3)
Adds Windows Authentication to the Kestrun host.
The authentication scheme name is AuthenticationScheme. This enables Kerberos and NTLM authentication.
public static KestrunHost AddWindowsAuthentication(this KestrunHost host,
string authenticationScheme = "Negotiate", string? displayName = "Windows Authentication",
WindowsAuthOptions? configureOptions = null)
| parameter | description |
|---|---|
| host | The Kestrun host instance. |
| authenticationScheme | The authentication scheme name (default is NegotiateDefaults.AuthenticationScheme). |
| displayName | The display name for the authentication scheme. |
| configureOptions | The WindowsAuthOptions object to configure the authentication. |
Return Value
The configured KestrunHost instance.
See Also
- class KestrunHost
- class WindowsAuthOptions
- class KestrunHostAuthnExtensions
- namespace Kestrun.Hosting