Table of Contents

Class KeycloakAuthenticationOptions

Namespace
Keycloak.AuthServices.Authentication
Assembly
Keycloak.AuthServices.Authentication.dll

Defines a set of options used to perform authentication

public class KeycloakAuthenticationOptions : KeycloakInstallationOptions
Inheritance
KeycloakAuthenticationOptions
Inherited Members

Fields

Section

Default section name.

public const string Section = "Keycloak"

Field Value

string

Properties

Audience

Gets or sets the audience for the authentication. Takes priority over Resource.

public string? Audience { get; set; }

Property Value

string

DisableRolesAccessTokenMapping

Gets or sets the roles mapping from access_token mapping

public bool DisableRolesAccessTokenMapping { get; set; }

Property Value

bool

NameClaimType

Gets or sets the claim type used for the name.

public string NameClaimType { get; set; }

Property Value

string

OpenIdConnectUrl

Gets the OpenId Connect URL to discover OAuth2 configuration values.

public string? OpenIdConnectUrl { get; }

Property Value

string

RoleClaimType

Gets or sets the claim type used for roles.

public string RoleClaimType { get; set; }

Property Value

string