grafana/pkg/models/models.go
twendt ff6a082e23
Auth: Azure AD OAuth (#20030)
* Implement Azure AD oauth

* Use go-jose and cleanup

* Update go-jose in go.mod

* cleanup

* Add unit tests

* Fix scopes

* Add documentation page

* Improve documentation

* Convert extract_role into function.

* Do not use upn and replace unique_name with preferred_username

* Configure login button

* Use official microsoft icon and color from branding guideline.

* Add Azure AD config section in sample.ini.
2020-02-13 12:12:25 +03:00

14 lines
131 B
Go

package models
type OAuthType int
const (
GITHUB OAuthType = iota + 1
GOOGLE
TWITTER
GENERIC
GRAFANA_COM
GITLAB
AZUREAD
)