mirror of
https://github.com/warp-tech/warpgate.git
synced 2024-11-15 04:21:59 +08:00
fe521f2a39
Fixes #935
80 lines
2.2 KiB
YAML
80 lines
2.2 KiB
YAML
version: '3'
|
|
services:
|
|
oidc-server-mock:
|
|
container_name: oidc-server-mock
|
|
image: ghcr.io/soluto/oidc-server-mock:latest
|
|
ports:
|
|
- '4011:8080'
|
|
environment:
|
|
ASPNETCORE_ENVIRONMENT: Development
|
|
SERVER_OPTIONS_INLINE: |
|
|
{
|
|
"AccessTokenJwtType": "JWT",
|
|
"Discovery": {
|
|
"ShowKeySet": true
|
|
},
|
|
"Authentication": {
|
|
"CookieSameSiteMode": "Lax",
|
|
"CheckSessionCookieSameSiteMode": "Lax"
|
|
}
|
|
}
|
|
LOGIN_OPTIONS_INLINE: |
|
|
{
|
|
"AllowRememberLogin": false
|
|
}
|
|
LOGOUT_OPTIONS_INLINE: |
|
|
{
|
|
"AutomaticRedirectAfterSignOut": true
|
|
}
|
|
API_SCOPES_INLINE: |
|
|
- Name: some-app-scope-1
|
|
- Name: some-app-scope-2
|
|
API_RESOURCES_INLINE: |
|
|
- Name: some-app
|
|
Scopes:
|
|
- some-app-scope-1
|
|
- some-app-scope-2
|
|
USERS_CONFIGURATION_INLINE: |
|
|
[
|
|
{
|
|
"SubjectId":"1",
|
|
"Username":"User1",
|
|
"Password":"pwd",
|
|
"Claims": [
|
|
{
|
|
"Type": "name",
|
|
"Value": "Sam Tailor",
|
|
"ValueType": "string"
|
|
},
|
|
{
|
|
"Type": "email",
|
|
"Value": "sam.tailor@gmail.com",
|
|
"ValueType": "string"
|
|
},
|
|
{
|
|
"Type": "some-api-resource-claim",
|
|
"Value": "Sam's Api Resource Custom Claim",
|
|
"ValueType": "string"
|
|
},
|
|
{
|
|
"Type": "some-api-scope-claim",
|
|
"Value": "Sam's Api Scope Custom Claim",
|
|
"ValueType": "string"
|
|
},
|
|
{
|
|
"Type": "some-identity-resource-claim",
|
|
"Value": "Sam's Identity Resource Custom Claim",
|
|
"ValueType": "string"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
CLIENTS_CONFIGURATION_PATH: /tmp/config/clients-config.json
|
|
ASPNET_SERVICES_OPTIONS_INLINE: |
|
|
{
|
|
"ForwardedHeadersOptions": {
|
|
"ForwardedHeaders" : "All"
|
|
}
|
|
}
|
|
volumes:
|
|
- .:/tmp/config:ro
|