1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-11-30 21:32:30 +00:00

fix: oidc scopes are invalid when concatenated (#3332)

هذا الالتزام موجود في:
Matthieu Barthel
2025-05-08 08:51:46 +02:00
ملتزم من قبل GitHub
الأصل fd3c7ccdf6
التزام 9c5f96ae90
3 ملفات معدلة مع 4 إضافات و3 حذوفات

عرض الملف

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

عرض الملف

@@ -239,7 +239,8 @@ oidc:
secret: secret:
# Scopes to request from the OIDC server. # Scopes to request from the OIDC server.
scopes: scopes:
- openid,email - openid
- email
# The field to use to determine the user's UID # The field to use to determine the user's UID
uid_field: sub uid_field: sub
# The field to use to determine the user's email address # The field to use to determine the user's email address

عرض الملف

@@ -550,7 +550,7 @@ module Postal
string :scopes do string :scopes do
description "Scopes to request from the OIDC server." description "Scopes to request from the OIDC server."
array array
default "openid,email" default ["openid", "email"]
end end
string :uid_field do string :uid_field do