mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 02:10:45 -06:00
docs: gitlab: add note about more restrictive API scope
If `allowed_groups` is not used with GitLab authentication, the *read_user* scope can be used instead of *api*.
This commit is contained in:
parent
ce804e9981
commit
5a91e670d8
@ -448,8 +448,12 @@ instance, if you access Grafana at `http://203.0.113.31:3000`, you should use
|
||||
http://203.0.113.31:3000/login/gitlab
|
||||
```
|
||||
|
||||
Finally, select *api* as the *Scope* and submit the form. You'll get an
|
||||
*Application Id* and a *Secret* in return; we'll call them
|
||||
Finally, select *api* as the *Scope* and submit the form. Note that if you're
|
||||
not going to use GitLab groups for authorization (i.e. not setting
|
||||
`allowed_groups`, see below), you can select *read_user* instead of *api* as
|
||||
the *Scope*, thus giving a more restricted access to your GitLab API.
|
||||
|
||||
You'll get an *Application Id* and a *Secret* in return; we'll call them
|
||||
`GITLAB_APPLICATION_ID` and `GITLAB_SECRET` respectively for the rest of this
|
||||
section.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user