Skip to content

Commit e1474bc

Browse files
committed
Add SSO sample configuration for Authelia
Signed-off-by: Thilo-Alexander Ginkel <[email protected]>
1 parent 5eb08fd commit e1474bc

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

docs/setup/sso.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,59 @@ If there is only one upstream provider configured and the local password databas
6868

6969
This section contains sample configurations for popular OIDC providers.
7070

71+
### Authelia
72+
73+
These instructions assume that you have already enabled the OIDC provider support in [Authelia](https://www.authelia.com/).
74+
75+
Add a client for MAS to the Authelia configuration:
76+
77+
```yaml
78+
- client_id: "<client-id>" # TO BE FILLED
79+
client_name: Matrix
80+
client_secret: "<client-secret>" # TO BE FILLED
81+
public: false
82+
redirect_uris:
83+
- https://<mas-fqdn>/upstream/callback/<id>
84+
scopes:
85+
- openid
86+
- groups
87+
- profile
88+
- email
89+
grant_types:
90+
- 'refresh_token'
91+
- 'authorization_code'
92+
response_types:
93+
- code
94+
```
95+
96+
Authentication service configuration:
97+
98+
```yaml
99+
upstream_oauth2:
100+
providers:
101+
providers:
102+
- id: <id>
103+
human_name: Authelia
104+
issuer: "https://<authelia-fqdn>" # TO BE FILLED W/O ANY TRAILING SLASHES
105+
client_id: "<client-id>" # TO BE FILLED
106+
client_secret: "<client-secret>" # TO BE FILLED
107+
token_endpoint_auth_method: client_secret_basic
108+
scope: "openid profile email"
109+
discovery_mode: insecure
110+
claims_imports:
111+
localpart:
112+
action: require
113+
template: "{{ user.preferred_username }}"
114+
displayname:
115+
action: suggest
116+
template: "{{ user.name }}"
117+
email:
118+
action: suggest
119+
template: "{{ user.email }}"
120+
set_email_verification: always
121+
```
122+
123+
71124
### Authentik
72125
73126
[Authentik](https://goauthentik.io/) is an open-source IdP solution.

0 commit comments

Comments
 (0)