Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ OAUTH_ENABLED=false
OAUTH_CLIENT_ID=
OAUTH_CLIENT_SECRET=
OAUTH_CLIENT_SCOPES="email profile groups"
OAUTH_MAPPING_IDENTIFIER=sub
OAUTH_AUTHORIZATION_URL=
OAUTH_ACCESS_TOKEN_URL=
OAUTH_INFOS_URL=
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ The following environment variables can be set in the `.env` file or in the envi
- `OAUTH_CLIENT_ID`: The client ID for the OAuth2 provider.
- `OAUTH_CLIENT_SECRET`: The client secret for the OAuth2 provider.
- `OAUTH_CLIENT_SCOPES`: The scopes requested from the OAuth2 provider. Default: `"email profile groups"`.
- `OAUTH_MAPPING_IDENTIFIER`: The identifier used to map the OAuth2 user to the application user. Default: `"sub"`.
- `OAUTH_AUTHORIZATION_URL`: The authorization URL for the OAuth2 provider.
- `OAUTH_ACCESS_TOKEN_URL`: The access token URL for the OAuth2 provider.
- `OAUTH_INFOS_URL`: The user information URL for the OAuth2 provider.
Expand Down
2 changes: 1 addition & 1 deletion config/packages/hwi_oauth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ hwi_oauth:
authorization_url: '%env(OAUTH_AUTHORIZATION_URL)%'
infos_url: '%env(OAUTH_INFOS_URL)%'
paths:
identifier: sub
identifier: '%env(default:sub:OAUTH_MAPPING_IDENTIFIER)%'
Loading