mirror of
https://github.com/offen/docker-volume-backup.git
synced 2026-04-17 14:45:35 +02:00
Add OAuth2 mock server for CI testing
This commit is contained in:
@@ -11,6 +11,17 @@ services:
|
||||
volumes:
|
||||
- ./user_v2.yaml:/etc/openapi/user_v2.yaml
|
||||
|
||||
oauth2_mock:
|
||||
image: ghcr.io/navikt/mock-oauth2-server:1.0.0
|
||||
ports:
|
||||
- 8090:8090
|
||||
environment:
|
||||
PORT: 8090
|
||||
JSON_CONFIG_PATH: '/etc/oauth2/config.yaml'
|
||||
volumes:
|
||||
- ./oauth2_config.yaml:/etc/oauth2/config.yaml
|
||||
hostname: host.docker.internal
|
||||
|
||||
backup:
|
||||
image: offen/docker-volume-backup:${TEST_VERSION:-canary}
|
||||
hostname: hostnametoken
|
||||
@@ -25,6 +36,7 @@ services:
|
||||
BACKUP_PRUNING_LEEWAY: 5s
|
||||
BACKUP_PRUNING_PREFIX: test
|
||||
DROPBOX_ENDPOINT: http://openapi_mock:8080
|
||||
DROPBOX_OAUTH2_ENDPOINT: http://oauth2_mock:8090
|
||||
DROPBOX_REFRESH_TOKEN: test
|
||||
DROPBOX_APP_KEY: test
|
||||
DROPBOX_APP_SECRET: test
|
||||
|
||||
32
test/dropbox/oauth2_config.yaml
Normal file
32
test/dropbox/oauth2_config.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"issuer":"http://localhost:8090/default",
|
||||
"authorization_endpoint":"http://localhost:8090/default/authorize",
|
||||
"end_session_endpoint" : "http://localhost:8090/default/endsession",
|
||||
"revocation_endpoint" : "http://localhost:8090/default/revoke",
|
||||
"token_endpoint":"http://localhost:8090/default/token",
|
||||
"userinfo_endpoint":"http://localhost:8090/default/userinfo",
|
||||
"jwks_uri":"http://localhost:8090/default/jwks",
|
||||
"introspection_endpoint":"http://localhost:8090/default/introspect",
|
||||
"response_types_supported":[
|
||||
"query",
|
||||
"fragment",
|
||||
"form_post"
|
||||
],
|
||||
"subject_types_supported":[
|
||||
"public"
|
||||
],
|
||||
"id_token_signing_alg_values_supported":[
|
||||
"ES256",
|
||||
"ES384",
|
||||
"RS256",
|
||||
"RS384",
|
||||
"RS512",
|
||||
"PS256",
|
||||
"PS384",
|
||||
"PS512"
|
||||
],
|
||||
"code_challenge_methods_supported":[
|
||||
"plain",
|
||||
"S256"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user