social: add GitLab authentication backend

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.
This commit is contained in:
Benoît Knecht
2018-08-14 14:11:48 +02:00
parent aefcb06ff8
commit 7ec146df99
6 changed files with 164 additions and 1 deletions
+1
View File
@@ -8,4 +8,5 @@ const (
TWITTER
GENERIC
GRAFANA_COM
GITLAB
)