mirror of
https://github.com/penpot/penpot.git
synced 2025-02-02 04:19:08 -05:00
🔧 Allow override oidc scopes.
And relax default scopes to `profile` and `openid`.
This commit is contained in:
parent
3656ab977b
commit
07f3d48a9d
2 changed files with 6 additions and 2 deletions
|
@ -25,6 +25,11 @@
|
||||||
|
|
||||||
### :arrow_up: Deps updates
|
### :arrow_up: Deps updates
|
||||||
### :boom: Breaking changes
|
### :boom: Breaking changes
|
||||||
|
|
||||||
|
- The OIDC setting `PENPOT_OIDC_SCOPES` has chenged the default semantincs. Before this
|
||||||
|
configuration added scopes to the default set. Now it replaces it, so use with care, because
|
||||||
|
penpot requires at least `name` and `email` props found on the user info object.
|
||||||
|
|
||||||
### :heart: Community contributions by (Thank you!)
|
### :heart: Community contributions by (Thank you!)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -232,8 +232,7 @@
|
||||||
:token-uri (cf/get :oidc-token-uri)
|
:token-uri (cf/get :oidc-token-uri)
|
||||||
:auth-uri (cf/get :oidc-auth-uri)
|
:auth-uri (cf/get :oidc-auth-uri)
|
||||||
:user-uri (cf/get :oidc-user-uri)
|
:user-uri (cf/get :oidc-user-uri)
|
||||||
:scopes (into #{"openid" "profile" "email" "name"}
|
:scopes (cf/get :oidc-scopes #{"openid" "profile"})
|
||||||
(cf/get :oidc-scopes #{}))
|
|
||||||
:roles-attr (cf/get :oidc-roles-attr)
|
:roles-attr (cf/get :oidc-roles-attr)
|
||||||
:roles (cf/get :oidc-roles)
|
:roles (cf/get :oidc-roles)
|
||||||
:name "oidc"}]
|
:name "oidc"}]
|
||||||
|
|
Loading…
Add table
Reference in a new issue