mirror of
https://github.com/distinguished-sre/keycloak-compose.git
synced 2026-12-02 17:21:55 +03:00
63 lines
1.4 KiB
JSON
63 lines
1.4 KiB
JSON
{
|
|
"realm": "${KC_REALM_NAME}",
|
|
"displayName": "Grafana OAuth",
|
|
"sslRequired": "none",
|
|
"enabled": true,
|
|
"eventsEnabled": true,
|
|
"eventsExpiration": 900,
|
|
"adminEventsEnabled": true,
|
|
"adminEventsDetailsEnabled": true,
|
|
"attributes": {
|
|
"adminEventsExpiration": "900"
|
|
},
|
|
"clients": [
|
|
{
|
|
"clientId": "grafana",
|
|
"name": "Grafana",
|
|
"enabled": true,
|
|
"publicClient": true,
|
|
"standardFlowEnabled": true,
|
|
"implicitFlowEnabled": false,
|
|
"directAccessGrantsEnabled": false,
|
|
"serviceAccountsEnabled": false,
|
|
"frontchannelLogout": true,
|
|
"protocol": "openid-connect",
|
|
"rootUrl": "${GF_URL}",
|
|
"adminUrl": "${GF_URL}",
|
|
"baseUrl": "${GF_URL}",
|
|
"redirectUris": [
|
|
"${GF_URL}/login/generic_oauth"
|
|
],
|
|
"webOrigins": [
|
|
"${GF_URL}"
|
|
],
|
|
"attributes": {
|
|
"pkce.code.challenge.method": "S256",
|
|
"post.logout.redirect.uris": "${GF_URL}/login"
|
|
},
|
|
"defaultClientScopes": [
|
|
"openid",
|
|
"profile",
|
|
"email"
|
|
]
|
|
}
|
|
],
|
|
"users": [
|
|
{
|
|
"email": "${GF_ADMIN_USERNAME}@example.com",
|
|
"username": "${GF_ADMIN_USERNAME}",
|
|
"firstName": "DevOps",
|
|
"lastName": "SRE",
|
|
"enabled": true,
|
|
"emailVerified": true,
|
|
"credentials": [
|
|
{
|
|
"temporary": false,
|
|
"type": "password",
|
|
"value": "${GF_ADMIN_PASSWORD}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|