-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Grafana | ||
======= | ||
|
||
Grafana works similar to Facebook (OAuth). | ||
|
||
- On your project settings, you should add Grafana on your ``AUTHENTICATION_BACKENDS``:: | ||
|
||
AUTHENTICATION_BACKENDS = ( | ||
... | ||
'social_core.backends.grafana.GrafanaOAuth2', | ||
) | ||
|
||
- Register a new application at `Grafana Cloud Portal` in grafana.com by doing | ||
`My Account → SECURITY → OAuth Clients → Add OAuth Client Application`. | ||
Set any name and in URL just the domain, without any path. | ||
|
||
- Copy `client_id` and `client_secret` and add these values in your project settings file. | ||
|
||
The ``client_id`` should be added on ``SOCIAL_AUTH_GRAFANA_KEY`` and the ``client_secret`` should be | ||
added on ``SOCIAL_AUTH_GRAFANA_SECRET``:: | ||
|
||
SOCIAL_AUTH_GRAFANA_KEY = 'a1b2c3d4' | ||
SOCIAL_AUTH_GRAFANA_SECRET = 'e5f6g7h8i9' | ||
|
||
- The default scope is ```['profile', 'email']``` but it's possible to define it in settings with:: | ||
|
||
SOCIAL_AUTH_GRAFANA_SCOPE = [...] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,6 +90,7 @@ Social backends | |
gitlab | ||
gitea | ||
grafana | ||
itembase | ||
jawbone | ||
|