mirror of
https://github.com/penpot/penpot.git
synced 2025-05-25 20:26:11 +02:00
🐛 Set correct scopes for gitlab auth integration
This commit is contained in:
parent
3d588a88e2
commit
73117f6f27
1 changed files with 1 additions and 2 deletions
|
@ -385,14 +385,13 @@
|
||||||
(assoc-in cfg [:providers "github"] opts))
|
(assoc-in cfg [:providers "github"] opts))
|
||||||
cfg)))
|
cfg)))
|
||||||
|
|
||||||
|
|
||||||
(defn- initialize-gitlab-provider
|
(defn- initialize-gitlab-provider
|
||||||
[cfg]
|
[cfg]
|
||||||
(let [base (cf/get :gitlab-base-uri "https://gitlab.com")
|
(let [base (cf/get :gitlab-base-uri "https://gitlab.com")
|
||||||
opts {:base-uri base
|
opts {:base-uri base
|
||||||
:client-id (cf/get :gitlab-client-id)
|
:client-id (cf/get :gitlab-client-id)
|
||||||
:client-secret (cf/get :gitlab-client-secret)
|
:client-secret (cf/get :gitlab-client-secret)
|
||||||
:scopes #{"read_user"}
|
:scopes #{"openid" "profile" "email"}
|
||||||
:auth-uri (str base "/oauth/authorize")
|
:auth-uri (str base "/oauth/authorize")
|
||||||
:token-uri (str base "/oauth/token")
|
:token-uri (str base "/oauth/token")
|
||||||
:user-uri (str base "/api/v4/user")
|
:user-uri (str base "/api/v4/user")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue