You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| `HEADER_USERNAME` | The header to look at for the username. Usernames are matched (ignoring case) with the names of the players in the game. | `x-auth-request-preferred-username` |
79
-
| `HEADER_ROLES` | The header to look at for the roles. This must be a comma-separated list. | `x-auth-request-groups` |
79
+
| `HEADER_ROLES` | The header to look at for the roles. | `x-auth-request-groups` |
80
+
| `HEADER_ROLES_SEPARATOR` | The symbol that is used to separate the roles in the header. | `,` |
80
81
| `ROLE_PLAYER` | The role that marks someone as a player. | `role:foundry-vtt:player` |
81
82
| `ROLE_ADMIN` | The role that marks someone as an admin. | `role:foundry-vtt:admin` |
@@ -59,7 +60,7 @@ patch_append hide-password-fields resources/app/public/css/foundry2.css << END
59
60
END
60
61
61
62
# Pass information about the user info from the headers to the client side. This is used for auto-login behavior, as well as to hide elements that aren't relevant for players.
Copy file name to clipboardExpand all lines: tutorials/authentik_traefik.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,6 @@ This guide supposes you have a working Authentik and Traefik setup on docker. Sp
6
6
7
7
## Modifying the patch
8
8
9
-
You need to modify the patch (`patches.sh`) so that all `split(',')` calles are replaced with `split('|') as Authentik uses `|`as a seprator for multiple roles. This is needed to make the patch work with Authentik. I'm bad at regex and js, so I didn't modify the patch source code to support both`,`and`|`, but you can do it if you want to.
10
-
11
9
You can skip the next 2 sections if you follow this [Tutorial](https://docs.ibracorp.io/authentik/authentik/docker-compose/traefik-forward-auth-single-applications) to set up Authentik with Traefik Forward Auth.
12
10
13
11
## Traefik Forward Auth Configuration
@@ -70,6 +68,7 @@ foundry:
70
68
71
69
- HEADER_USERNAME=x-authentik-username # This needs to be lowercase and present as X-authentik-username in traefik dynamic config
72
70
- HEADER_ROLES=x-authentik-groups # As above, but X-authentik-groups
71
+
- HEADER_ROLES_SEPARATOR='|' # The default is ',', but Authentik uses '|'.
73
72
- ROLE_PLAYER=foundry-player # This is the group name you set in Authentik for players
74
73
- ROLE_ADMIN=foundry-admin # This is the group name you set in Authentik for admins
0 commit comments