Compare commits

...

2 Commits

Author SHA1 Message Date
Philipp Rothmann 3777163e89 fix db stuff 2022-11-22 13:22:09 +01:00
Philipp Rothmann 4915532e14 fix redirect-uri in get_token 2022-11-22 13:21:21 +01:00
5 changed files with 10 additions and 3 deletions

View File

@ -0,0 +1,4 @@
.env
.vscode
.venv
__pycache__

View File

@ -6,5 +6,5 @@ TOKEN_URL="https://sso.example.org/application/o/token/"
REDIRECT_URL="https://example.org/login-callback"
SECRET_KEY=
LOAD_INCLUSTER_CONFIG=false
DATABASE_URL=sqlite:///database.db
AUTHENTIK_BASEURL="https://sso.example.org/api/v3"
DATABASE_URL=sqlite:///db/database.db
AUTHENTIK_BASEURL="https://sso.example.org/api/v3"

1
backend/.gitignore vendored
View File

@ -8,4 +8,5 @@ __pycache__
.envrc
.direnv
run_app.local.sh
db/
*.db

View File

@ -2,5 +2,6 @@
set -eu
env
mkdir db
flask db upgrade
gunicorn app:app -b 0.0.0.0:5000 --workers "$(nproc)" --reload --capture-output --enable-stdio-inheritance --log-level DEBUG
gunicorn app:app -b 0.0.0.0:5000 --workers "$(nproc)" --reload --capture-output --enable-stdio-inheritance --log-level DEBUG

View File

@ -23,6 +23,7 @@ class LITOauth:
try:
oauth = OAuth2Session(
client_id=HYDRA_CLIENT_ID,
redirect_uri=REDIRECT_URL,
state=state,
)
token = oauth.fetch_token(