KestrunHostAuthnExtensions class
Provides extension methods for adding authentication schemes to the Kestrun host.
public static class KestrunHostAuthnExtensions
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 AddGitHubOAuthAuthentication(…) | Adds GitHub OAuth (Authorization Code) authentication with optional email enrichment. Creates three schemes: scheme, scheme.Cookies, scheme.Policy. |
| static AddJwtBearerAuthentication(…) | Adds JWT Bearer authentication to the Kestrun host. (2 methods) |
| static AddOAuth2Authentication(…) | Adds OAuth2 authentication to the Kestrun host. |
| static AddOpenIdConnectAuthentication(…) | Adds OpenID Connect authentication to the Kestrun host with private key JWT client assertion. |
| static AddWindowsAuthentication(…) | Adds Windows Authentication to the Kestrun host. (3 methods) |
| 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
- KestrunHostAuthnExtensions.cs