mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Auth: Update authentik devenv and add oauth (#64691)
update authentik devenv and add oauth
This commit is contained in:
@@ -8,7 +8,7 @@ Useful for testing a second implementation
|
|||||||
|
|
||||||
- [x] LDAP
|
- [x] LDAP
|
||||||
- [x] SAML
|
- [x] SAML
|
||||||
- [ ] OAuth
|
- [x] OAuth
|
||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
@@ -71,6 +71,23 @@ allow_idp_initiated = true
|
|||||||
org_mapping = admin:1:Admin, editor:1:Editor, viewer:1:Viewer
|
org_mapping = admin:1:Admin, editor:1:Editor, viewer:1:Viewer
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# OAuth Setup
|
||||||
|
|
||||||
|
```ini
|
||||||
|
[auth.generic_oauth]
|
||||||
|
name = authentik
|
||||||
|
enabled = true
|
||||||
|
client_id = 43e8d2746fe2e508325a23cdf816d6ddd12e94f1
|
||||||
|
client_secret = e50440f14a010fd69dfed85bc6c071653f22c73e2c6c8d7ba96a936937d92040936b7e5a4bcc1bf40d5cf1dc019b1db327a1a00e2183c53471fb7530d4a09d7e
|
||||||
|
scopes = openid email profile
|
||||||
|
auth_url = http://localhost:9000/application/o/authorize/
|
||||||
|
token_url = http://localhost:9000/application/o/token/
|
||||||
|
api_url = http://localhost:9000/application/o/userinfo/
|
||||||
|
role_attribute_path = contains(groups[*], 'admin') && 'Admin' || contains(groups[*], 'editor') && 'Editor' || 'Viewer'
|
||||||
|
|
||||||
|
[auth]
|
||||||
|
signout_redirect_url = http://localhost:9000/application/o/grafana-oidc/end-session/
|
||||||
|
```
|
||||||
|
|
||||||
## Available users and groups
|
## Available users and groups
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -39,7 +39,7 @@
|
|||||||
- "authentik:authentik"
|
- "authentik:authentik"
|
||||||
|
|
||||||
authentik:
|
authentik:
|
||||||
image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2022.12.1}
|
image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2023.2.3}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: authentik
|
container_name: authentik
|
||||||
command: server
|
command: server
|
||||||
|
|||||||
Reference in New Issue
Block a user