From 80d88d302c04da0214531f03cde814f707fb631f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 12 Dec 2016 16:35:42 +0100 Subject: [PATCH] fix(config): changed default for oauth and allow_sign_up setting, #6928 --- conf/defaults.ini | 8 ++++---- conf/sample.ini | 8 ++++---- docs/sources/installation/configuration.md | 7 ++++--- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/conf/defaults.ini b/conf/defaults.ini index 939a92bd007..bf0e567cc8f 100644 --- a/conf/defaults.ini +++ b/conf/defaults.ini @@ -209,7 +209,7 @@ org_role = Viewer #################################### Github Auth ######################### [auth.github] enabled = false -allow_sign_up = false +allow_sign_up = true client_id = some_id client_secret = some_secret scopes = user:email @@ -222,7 +222,7 @@ allowed_organizations = #################################### Google Auth ######################### [auth.google] enabled = false -allow_sign_up = false +allow_sign_up = true client_id = some_client_id client_secret = some_client_secret scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email @@ -235,7 +235,7 @@ hosted_domain = #################################### Grafana.net Auth #################### [auth.grafananet] enabled = false -allow_sign_up = false +allow_sign_up = true client_id = some_id client_secret = some_secret scopes = user:email @@ -244,7 +244,7 @@ allowed_organizations = #################################### Generic OAuth ####################### [auth.generic_oauth] enabled = false -allow_sign_up = false +allow_sign_up = true client_id = some_id client_secret = some_secret scopes = user:email diff --git a/conf/sample.ini b/conf/sample.ini index 57f7415de44..43eba5b62cd 100644 --- a/conf/sample.ini +++ b/conf/sample.ini @@ -194,7 +194,7 @@ #################################### Github Auth ########################## [auth.github] ;enabled = false -;allow_sign_up = false +;allow_sign_up = true ;client_id = some_id ;client_secret = some_secret ;scopes = user:email,read:org @@ -207,7 +207,7 @@ #################################### Google Auth ########################## [auth.google] ;enabled = false -;allow_sign_up = false +;allow_sign_up = true ;client_id = some_client_id ;client_secret = some_client_secret ;scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email @@ -219,7 +219,7 @@ #################################### Generic OAuth ########################## [auth.generic_oauth] ;enabled = false -;allow_sign_up = false +;allow_sign_up = true ;client_id = some_id ;client_secret = some_secret ;scopes = user:email,read:org @@ -232,7 +232,7 @@ #################################### Grafana.net Auth #################### [auth.grafananet] ;enabled = false -;allow_sign_up = false +;allow_sign_up = true ;client_id = some_id ;client_secret = some_secret ;scopes = user:email diff --git a/docs/sources/installation/configuration.md b/docs/sources/installation/configuration.md index 838be7f168e..e5d86e934c8 100644 --- a/docs/sources/installation/configuration.md +++ b/docs/sources/installation/configuration.md @@ -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.