forked from thedevs-network/kutt
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.oidc.yml
More file actions
77 lines (77 loc) · 2.26 KB
/
docker-compose.oidc.yml
File metadata and controls
77 lines (77 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
services:
server:
build:
context: .
volumes:
- db_data_sqlite:/var/lib/kutt
- custom:/kutt/custom
env_file: .env
environment:
DB_FILENAME: "/var/lib/kutt/data.sqlite"
DISALLOW_REGISTRATION: "false"
OIDC_ENABLED: "true"
OIDC_ISSUER: http://7f000101.nip.io:8080
OIDC_CLIENT_ID: mock-client-id
OIDC_CLIENT_SECRET: some-client-Secret
OIDC_SCOPE: openid profile email
OIDC_APP_URL: http://localhost:3000
ports:
- 3000:3000
links:
- oidc-server-mock:7f000101.nip.io
oidc-server-mock:
container_name: oidc-server-mock
image: ghcr.io/soluto/oidc-server-mock:0.11.0
ports:
- 8080:8080
domainname: 7f000101.nip.io
environment:
SERVER_OPTIONS_INLINE: |
{
"AccessTokenJwtType": "JWT",
"Discovery": {
"ShowKeySet": true
},
"Authentication": {
"CookieSameSiteMode": "Lax",
"CheckSessionCookieSameSiteMode": "Lax"
}
}
CLIENTS_CONFIGURATION_INLINE: |
[
{
"ClientId": "mock-client-id",
"ClientSecrets": ["some-client-Secret"],
"Description": "Mock OIDC",
"AllowedGrantTypes": ["authorization_code"],
"AllowAccessTokensViaBrowser": true,
"RedirectUris": ["http://localhost:3000/*"],
"AllowedScopes": ["openid", "profile", "email"],
"IdentityTokenLifetime": 3600,
"AccessTokenLifetime": 3600
}
]
USERS_CONFIGURATION_INLINE: |
[
{
"SubjectId":"1",
"Username":"user01",
"Password":"pwd",
"Claims": [
{ "Type": "name", "Value": "User 01", "ValueType": "string" },
{ "Type": "email", "Value": "[email protected]", "ValueType": "string" }
],
},
{
"SubjectId":"2",
"Username":"user02",
"Password":"pwd",
"Claims": [
{ "Type": "name", "Value": "User 02", "ValueType": "string" },
{ "Type": "email", "Value": "[email protected]", "ValueType": "string" }
],
}
]
volumes:
db_data_sqlite:
custom: