KestrunHostAuthnExtensions.AddOpenIdConnectAuthentication method
Adds OpenID Connect authentication to the Kestrun host with private key JWT client assertion.
Use this for applications that require OpenID Connect authentication with client credentials using JWT assertion.
public static KestrunHost AddOpenIdConnectAuthentication(this KestrunHost host,
string authenticationScheme = "OpenIDConnect",
string? displayName = "OpenID Connect Authentication", OidcOptions? configureOptions = null)
| parameter | description |
|---|---|
| host | The Kestrun host instance. |
| authenticationScheme | The authentication scheme name. |
| displayName | The display name for the authentication scheme. |
| configureOptions | The OpenIdConnectOptions to configure the authentication. |
Return Value
The configured KestrunHost instance.
See Also
- class KestrunHost
- class OidcOptions
- class KestrunHostAuthnExtensions
- namespace Kestrun.Hosting