Skip to content

Commit 20629d3

Browse files
committed
chore: update oidc readme
1 parent 17727cd commit 20629d3

3 files changed

Lines changed: 19 additions & 14 deletions

File tree

test/oidc/README.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@
55
Check config in ./dex/config/dex.conf and do a `docker-compose up -d`.
66

77
Use this gotify config.
8-
```
9-
oidc:
10-
enabled: true
11-
issuer: http://127.0.0.1:5556/dex
12-
clientid: gotify
13-
clientsecret: secret
14-
redirecturl: http://127.0.0.1:8080/auth/oidc/callback
8+
```ini
9+
GOTIFY_OIDC_ENABLED=true
10+
GOTIFY_OIDC_ISSUER=http://127.0.0.1:5556/dex
11+
GOTIFY_OIDC_CLIENTID=gotify
12+
GOTIFY_OIDC_CLIENTSECRET=secret
13+
GOTIFY_OIDC_REDIRECTURL=http://127.0.0.1:8080/auth/oidc/callback
1514
```
1615

1716
When testing external apps like gotify/android change every occurence of
@@ -29,13 +28,16 @@ openssl req -x509 -newkey rsa:4096 -nodes -keyout ./authelia/config/key -out ./a
2928
Check config in ./authelia/config/configuration.yml and do a `docker-compose up -d`.
3029

3130
Use this gotify config.
32-
```
33-
oidc:
34-
enabled: true
35-
issuer: https://127.0.0.1:9091
36-
clientid: gotify
37-
clientsecret: secret
38-
redirecturl: http://127.0.0.1:8080/auth/oidc/callback
31+
```ini
32+
GOTIFY_OIDC_ENABLED=true
33+
GOTIFY_OIDC_ISSUER=https://127.0.0.1:9091
34+
GOTIFY_OIDC_CLIENTID=gotify
35+
GOTIFY_OIDC_CLIENTSECRET=secret
36+
GOTIFY_OIDC_REDIRECTURL=http://127.0.0.1:8080/auth/oidc/callback
37+
GOTIFY_OIDC_SCOPES=openid,profile,email,groups
38+
# GOTIFY_OIDC_GROUPS_CLAIM=groups
39+
# GOTIFY_OIDC_GROUPS_USER=
40+
# GOTIFY_OIDC_GROUPS_ADMIN=authelia-group
3941
```
4042

4143
When testing external apps like gotify/android change every occurence of

test/oidc/authelia/config/configuration.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ identity_providers:
116116
- 'openid'
117117
- 'profile'
118118
- 'email'
119+
- 'groups'
119120
response_types:
120121
- 'code'
121122
grant_types:

test/oidc/authelia/config/users_database.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ users:
33
displayname: "user"
44
password: "$2a$10$JoPsdyz7c9Q1bqhw1.bHrefdNlOWY0/22VQZh33X9vDEl3Du1utqe" # password
55
email: user@gotify.net
6+
groups:
7+
- authelia-group

0 commit comments

Comments
 (0)