Skip to content

Commit 9c5f96a

Browse files
fix: oidc scopes are invalid when concatenated (#3332)
1 parent fd3c7cc commit 9c5f96a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

doc/config/environment-variables.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ This document contains all the environment variables which are available for thi
105105
| `OIDC_ISSUER` | String | The OIDC issuer URL | |
106106
| `OIDC_IDENTIFIER` | String | The client ID for OIDC | |
107107
| `OIDC_SECRET` | String | The client secret for OIDC | |
108-
| `OIDC_SCOPES` | Array of strings | Scopes to request from the OIDC server. | openid,email |
108+
| `OIDC_SCOPES` | Array of strings | Scopes to request from the OIDC server. | ["openid", "email"] |
109109
| `OIDC_UID_FIELD` | String | The field to use to determine the user's UID | sub |
110110
| `OIDC_EMAIL_ADDRESS_FIELD` | String | The field to use to determine the user's email address | email |
111111
| `OIDC_NAME_FIELD` | String | The field to use to determine the user's name | name |

doc/config/yaml.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ oidc:
239239
secret:
240240
# Scopes to request from the OIDC server.
241241
scopes:
242-
- openid,email
242+
- openid
243+
- email
243244
# The field to use to determine the user's UID
244245
uid_field: sub
245246
# The field to use to determine the user's email address

lib/postal/config_schema.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ module Postal
550550
string :scopes do
551551
description "Scopes to request from the OIDC server."
552552
array
553-
default "openid,email"
553+
default ["openid", "email"]
554554
end
555555

556556
string :uid_field do

0 commit comments

Comments
 (0)