Skip to content

Commit b080ed6

Browse files
WilliamB78WilliamB78
andauthored
feat: add new remote headers to zitadel-oauth example (#11)
* feat: add new remote headers to zitadel-oauth example * fix typos --------- Co-authored-by: WilliamB78 <william.butez@proton.me>
1 parent 8952dea commit b080ed6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/community/zitadel-oauth.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,20 @@ tinyauth:
4747
environment:
4848
- SECRET=some-random-32-chars-string
4949
- APP_URL=https://tinyauth.example.com
50-
- GENERIC_SCOPES=email
50+
- GENERIC_SCOPES="openid profile email preferred_username groups"
5151
- GENERIC_AUTH_URL=https://zitadel.example.com/oauth/v2/authorize
5252
- GENERIC_TOKEN_URL=https://zitadel.example.com/oauth/v2/token
5353
- GENERIC_USER_URL=https://zitadel.example.com/oidc/v1/userinfo
5454
- GENERIC_CLIENT_ID= # Paste from previous step
5555
- GENERIC_CLIENT_SECRET= # Paste from previous step
5656
- GENERIC_NAME=Zitadel
57+
- OAUTH_AUTO_REDIRECT=generic
58+
- DISABLE_CONTINUE=true
5759
labels:
5860
traefik.enable: true
5961
traefik.http.routers.tinyauth.rule: Host(`tinyauth.example.com`)
6062
traefik.http.middlewares.tinyauth.forwardauth.address: http://tinyauth:3000/api/auth/traefik
63+
traefik.http.middlewares.tinyauth.forwardauth.authResponseHeaders: Remote-User, Remote-Email, Remote-Name, Remote-Groups
6164
```
6265
6366
::: warning

0 commit comments

Comments
 (0)