mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 11:20:27 -06:00
7ec146df99
GitLab could already be used as an authentication backend by properly configuring `auth.generic_oauth`, but then there was no way to authorize users based on their GitLab group membership. This commit adds a `auth.gitlab` backend, similar to `auth.github`, with an `allowed_groups` option that can be set to a list of groups whose members should be allowed access to Grafana.
13 lines
122 B
Go
13 lines
122 B
Go
package models
|
|
|
|
type OAuthType int
|
|
|
|
const (
|
|
GITHUB OAuthType = iota + 1
|
|
GOOGLE
|
|
TWITTER
|
|
GENERIC
|
|
GRAFANA_COM
|
|
GITLAB
|
|
)
|