Skip to content
Snippets Groups Projects
Verified Commit d700e723 authored by Mark's avatar Mark
Browse files

Add login_logout example to docker composefile

parent c146b392
No related branches found
No related tags found
1 merge request!7Integration user panel
Pipeline #1490 failed with stages
in 2 minutes and 43 seconds
......@@ -13,7 +13,7 @@ services:
- "4445:4445" # Admin port
- "5555:5555" # Port for hydra token user
command:
serve all --dangerous-force-http --dangerous-allow-insecure-redirect-urls "http://localhost:13337/callback"
serve all --dangerous-force-http --dangerous-allow-insecure-redirect-urls "http://127.0.0.1:13337/callback"
environment:
- URLS_SELF_ISSUER=http://localhost:4444/
- URLS_CONSENT=http://localhost:5001/consent
......@@ -32,6 +32,7 @@ services:
environment:
- HYDRA_ADMIN_URL=http://hydra:4445
- GRAPHQL_URL=http://backend:5000/graphql
- FLASK_ENV=development
ports:
- "5001:5001"
restart: unless-stopped
......@@ -40,6 +41,7 @@ services:
environment:
- HYDRA_ADMIN_URL=http://hydra:4445
- GRAPHQL_URL=http://backend:5000/graphql
- FLASK_ENV=development
ports:
- "5000:5000"
restart: unless-stopped
......@@ -59,3 +61,23 @@ services:
image: postgres:11
environment:
- POSTGRES_PASSWORD=secret
oauth:
build: ./test/login_logout
environment:
- BASE_URL=http://localhost:4444/
- ACCESS_TOKEN_URL=http://hydra:4444/oauth2/token
- LOGOUT_URL=http://localhost:4444/oauth2/sessions/logout
- AUTHORIZE_URL=http://localhost:4444/oauth2/auth
- USERINFO_URL=http://hydra:4444/userinfo
- KEY=testapp
- SECRET=secret
- OAUTHLIB_INSECURE_TRANSPORT=true
- FLASK_ENV=development
# with this settings run:
# `bash test/create-127.0.0.1-client.bash testapp clientsecret http://localhost:4445 http://127.0.0.1:13337/callback
# to register a corresponding oauth client with hydra
ports:
- "13337:13337"
command: flask run --port 13337 --host "0.0.0.0"
restart: unless-stopped
......@@ -53,6 +53,7 @@ export AUTHORIZE_URL=http://localhost:4444/oauth2/auth # Hydra authentic
export USERINFO_URL=http://localhost:4444/userinfo # Hydra OpenID Connect userinfo endpoint
export KEY=testapplication # name of your oauth/openID Connect client (application)
export SECRET=clientsecret # secret of your oauth/openID Connect client (application)
export OAUTHLIB_INSECURE_TRANSPORT=true # allows connections via http
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment