Step 2x: Setup GitLab
December 10, 2021 ยท View on GitHub
First you will have to register your application on GitLab. Check out the documentation for more information: https://docs.gitlab.com/ee/integration/oauth_provider.html.
Next configure a resource owner of type gitlab with appropriate
client_id & client_secret.
Using read_user scope:
# config/packages/hwi_oauth.yaml
hwi_oauth:
resource_owners:
any_name:
type: gitlab
client_id: <client_id>
client_secret: <client_secret>
Using openid scope:
# config/packages/hwi_oauth.yaml
hwi_oauth:
resource_owners:
any_name:
type: gitlab
client_id: <client_id>
client_secret: <client_secret>
infos_url: https://gitlab.com/oauth/userinfo
scope: "openid email"
paths:
identifier: sub
nickname: nickname
realname: name
email: email
profilepicture: picture
Using the email scope is optional.
When you're done. Continue by configuring the security layer or go back to setup more resource owners.