OAuth2
Examples of setups for different OAuth providers
Generic configuration
auth:
type: OAUTH2
oauth2:
client:
<unique_name>:
clientId: xxx
clientSecret: yyy
scope: openid
client-name: cognito # will be displayed on the login page
provider: <provider>
redirect-uri: http://localhost:8080/login/oauth2/code/<provider>
authorization-grant-type: authorization_code
issuer-uri: https://xxx
jwk-set-uri: https://yyy/.well-known/jwks.json
user-name-attribute: <zzz>
custom-params:
type: <provider_type> # fill this if you're gonna use RBAC. Supported values: cognito, google, github, oauth (for other generic providers)
roles-field: groups # required for RBAC, a field name in OAuth token which will contain user's roles/groupsService Discovery
Provider config examples
Cognito
Google
Azure
GitHub
Self-hosted/Cloud (GitHub Enterprise Server)
Okta
Keycloak
GoAuthentic
Last updated
Was this helpful?