ReadonlyclientThe provider's client id.
Optional ReadonlyclientThe client secret. Required for client_secret_basic and
client_secret_post, forbidden with tokenEndpointAuth: 'none'.
Optional ReadonlyfailureRedirect here with a fixed ?error= code instead of answering 401. The
code is one of this plugin's own; a provider-supplied message is never
placed in the URL.
ReadonlynameKebab-case name, used in the route paths (/auth/<name>/login).
ReadonlyredirectThe exact redirect URI sent to the provider. Its path must end with that
provider's callback path, <basePath>/<name>/callback, so the registered route and the value the provider
matches against cannot disagree.
Optional ReadonlyscopesRequested scopes. Defaults to ['openid'] for oidc and [] for oauth2.
Optional ReadonlytokenToken-endpoint authentication. Defaults to client_secret_basic when a secret is present, otherwise none.
OptionalonReceives the provider's tokens after a successful callback. Nothing stores them: this is the only way to keep one.
Maps the verified claims to a principal. For oidc these are the ID token
claims; for oauth2 the userinfoEndpoint response. Return null to
refuse the sign-in with 403.
sub is unique only within its issuer, so an application with more than one
identity source must namespace the id, exactly as
TrustedIssuer.toPrincipal requires.
The fields an
oidcand anoauth2provider share.Since
0.8.0