KeycloakProvider
Reference doc for the `KeycloakProvider`.
Use this provider to authenticate with a Keycloak server.
Methods
KeycloakProvider
Parameters
The config for the provider.config
KeycloakConfig
Returns Provider
Create a Keycloak OAuth2 provider.
KeycloakConfig
KeycloakConfig.baseUrl
Type string
The base URL of the Keycloak server.
KeycloakConfig.clientID
Type string
The client ID.
This is just a string to identify your app.
KeycloakConfig.clientSecret
Type string
The client secret.
This is a private key that’s used to authenticate your app. It should be kept secret.
KeycloakConfig.query?
Type Record
<
string
, string
>
Any additional parameters that you want to pass to the authorization endpoint.
KeycloakConfig.realm
Type string
The realm in the Keycloak server to authenticate against.
A realm in Keycloak is like a tenant or namespace that manages a set of users, credentials, roles, and groups.
KeycloakConfig.scopes
Type string
[]
A list of OAuth scopes that you want to request.