Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modified to prevent this requirements conflict #115

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions docker-compose-local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: '3'

services:
keycloak_flask:
restart: "unless-stopped"
build: .
environment:
- FLASK_APP=keycloak_flask.user
- FLASK_DEBUG=1
- KEYCLOAK_FLASK_SETTINGS=local_settings.py
ports:
- "5000:5000"
networks:
- kitt

networks:
kitt:
external: true
21 changes: 13 additions & 8 deletions keycloak_flask/settings.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
# for local
# It's probably helpful for us to demonstrate what the URL should be, etc.

SECRET_KEY = b''
SECRET_KEY = b'keycloak'

SERVER_URL = ""
ADMIN_USERNAME = ""
ADMIN_PASS = ""
REALM_NAME = ""
CLIENT_ID = ""
CLIENT_SECRET = ""
# http, not https for some reason
SERVER_URL = "http://keycloak-idp:8080/auth/"
ADMIN_USERNAME = "admin"
ADMIN_PASS = "admin"
REALM_NAME = "master"
# created in keycloak per https://github.com/keycloak/keycloak-documentation/blob/main/securing_apps/topics/client-registration/client-registration-cli.adoc
CLIENT_ID = "keycloak-flask"
# set access-type to confidential, save, reload, will see a credentials tab where you can set this
CLIENT_SECRET = "2da4a9a4-f6f0-48d9-82f6-12012402f03a"

INGRESS_HOST = ""
# You'll probably have to tell docker this is OK on a Mac
INGRESS_HOST = "http://www.google.com/"
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ Pygments==2.7.2
python-jose==3.0.1
python-jwt==3.2.4
python-keycloak==0.17.6
requests==2.22.0
requests==2.26.0
rsa==4.0
six==1.15.0
traitlets==4.3.3
urllib3==1.26.2
urllib3==1.26.7
wcwidth==0.1.7
Werkzeug==0.16.0
WTForms==2.2.1