|
|
|
|
@ -289,6 +289,7 @@ example: |
|
|
|
|
|
|
|
|
|
[auth.github] |
|
|
|
|
enabled = true |
|
|
|
|
allow_sign_up = true |
|
|
|
|
client_id = YOUR_GITHUB_APP_CLIENT_ID |
|
|
|
|
client_secret = YOUR_GITHUB_APP_CLIENT_SECRET |
|
|
|
|
scopes = user:email |
|
|
|
|
@ -323,7 +324,7 @@ Grafana instance. For example: |
|
|
|
|
team_ids = 150,300 |
|
|
|
|
auth_url = https://github.com/login/oauth/authorize |
|
|
|
|
token_url = https://github.com/login/oauth/access_token |
|
|
|
|
allow_sign_up = false |
|
|
|
|
allow_sign_up = true |
|
|
|
|
|
|
|
|
|
### allowed_organizations |
|
|
|
|
|
|
|
|
|
@ -367,7 +368,7 @@ Secret. Specify these in the Grafana configuration file. For example: |
|
|
|
|
auth_url = https://accounts.google.com/o/oauth2/auth |
|
|
|
|
token_url = https://accounts.google.com/o/oauth2/token |
|
|
|
|
allowed_domains = mycompany.com mycompany.org |
|
|
|
|
allow_sign_up = false |
|
|
|
|
allow_sign_up = true |
|
|
|
|
|
|
|
|
|
Restart the Grafana back-end. You should now see a Google login button |
|
|
|
|
on the login page. You can now login or sign up with your Google |
|
|
|
|
@ -394,7 +395,7 @@ browser to access Grafana, but with the prefix path of `/login/generic_oauth`. |
|
|
|
|
token_url = |
|
|
|
|
api_url = |
|
|
|
|
allowed_domains = mycompany.com mycompany.org |
|
|
|
|
allow_sign_up = false |
|
|
|
|
allow_sign_up = true |
|
|
|
|
|
|
|
|
|
Set api_url to the resource that returns basic user info. |
|
|
|
|
|
|
|
|
|
|