KestrunHostAuthExtensions class
Provides extension methods for adding authentication and authorization schemes to the Kestrun host.
public static class KestrunHostAuthExtensions
Public Members
name | description |
---|---|
static AddApiKeyAuthentication(…) | Adds API Key Authentication to the Kestrun host. (2 methods) |
static AddAuthorization(…) | Adds authorization services to the Kestrun host. |
static AddBasicAuthentication(…) | Adds Basic Authentication to the Kestrun host. (2 methods) |
static AddCookieAuthentication(…) | Adds Cookie Authentication to the Kestrun host. (2 methods) |
static AddJwtBearerAuthentication(…) | Adds JWT Bearer authentication to the Kestrun host. |
static AddOpenIdConnectAuthentication(…) | Adds OpenID Connect authentication to the Kestrun host. |
static AddWindowsAuthentication(…) | Adds Windows Authentication to the Kestrun host. |
static HasAuthPolicy(…) | Checks if the specified authorization policy is registered in the Kestrun host. |
static HasAuthScheme(…) | Checks if the specified authentication scheme is registered in the Kestrun host. |
See Also
- namespace Kestrun.Hosting