-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathgrafana-aws-cognito.yaml
32 lines (31 loc) · 1.85 KB
/
grafana-aws-cognito.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
grafana:
envRenderSecret:
# Point the server domain to localhost
GF_SERVER_DOMAIN : "true"
# Set Grafana know server URL
GF_SERVER_ROOT_URL : http://localhost:3000
# Session policies
GF_SESSION_COOKIE_SECURE : "true"
GF_SESSION_COOKIE_SAMESITE : lax
# Disable internal username/password authentication
GF_AUTH_BASIC_ENABLED : "false"
# Disable basic auth login form
GF_AUTH_DISABLE_LOGIN_FORM : "true"
# Cognito OAuth settings
# Enable OAuth
GF_AUTH_GENERIC_OAUTH_ENABLED : "true"
# Oauth service name
GF_AUTH_GENERIC_OAUTH_ENABLED_NAME : Cognito
# Allow Oauth sign-up (Grafana can add authorized users to the internal database)
GF_AUTH_GENERIC_OAUTH_ALLOW_SIGN_UP : "true"
# App client ID/Secret
GF_AUTH_GENERIC_OAUTH_CLIENT_ID : "2su6lf50d5bgaacha2459e4ce3"
GF_AUTH_GENERIC_OAUTH_CLIENT_SECRET : "15o4uu6l27liur4nngbh5p2m8gncsk3d5uvsi6hnhh82827ltn9b"
# Information scope
GF_AUTH_GENERIC_OAUTH_SCOPES: email profile aws.cognito.signin.user.admin openid
# AWS Cognito OAuth endpoints
GF_AUTH_GENERIC_OAUTH_AUTH_URL: https://test-grafana.auth.ap-south-1.amazoncognito.com/oauth2/authorize
GF_AUTH_GENERIC_OAUTH_TOKEN_URL: https://test-grafana.auth.ap-south-1.amazoncognito.com/oauth2/token
GF_AUTH_GENERIC_OAUTH_API_URL: https://test-grafana.auth.ap-south-1.amazoncognito.com/oauth2/userinfo
GF_AUTH_SIGNOUT_REDIRECT_URL: https://test-grafana.auth.ap-south-1.amazoncognito.com/logout?client_id=2su6lf50d5bgaacha2459e4ce3&logout_uri=http%3A%2F%2Flocalhost%3A3000%2Flogin%2Fgeneric_oauth
GF_AUTH_GENERIC_OAUTH_ROLE_ATTRIBUTE_PATH: ("cognito:groups" | contains([*], 'Admin') && 'Admin' || contains([*], 'Editor') && 'Editor' || 'Viewer')