2 Commits

Author SHA1 Message Date
e85fdab068 oidc 2024-01-30 12:27:39 +01:00
24ac825ed7 oidc 2024-01-30 12:27:28 +01:00
4 changed files with 10 additions and 6 deletions

View File

@ -2,7 +2,7 @@ steps:
build:
image: plugins/kaniko
settings:
repo: gitea.hottis.de/wn/oidc-python-example
repo: gitea.hottis.de/moerp/elo-rezept-rechner
registry:
from_secret: container_registry
tags: latest,${CI_COMMIT_SHA},${CI_COMMIT_TAG}

View File

@ -5,7 +5,7 @@
"client_id": "nutri",
"client_secret": "%CLIENT_SECRET%",
"redirect_uris": [
"http://localhost:8080/*"
"https://nutri.hottis.de/*"
],
"userinfo_uri": "https://auth2.hottis.de/realms/hottis/protocol/openid-connect/userinfo",
"token_uri": "https://auth2.hottis.de/realms/hottis/protocol/openid-connect/token"

5
deployment/secrets.enc Normal file
View File

@ -0,0 +1,5 @@
U2FsdGVkX1/th2tFCYckNPvrVu7gmXIYlGBvSx8EWLNPbWTH61+dTDg6x6f7SFi5
n17zGVWBkfY2xr6uyHrvN8udF2dN6MTPccZITuEu9z66wtEHoiRQl1drA9og39yg
KTtwsbWeO7WSjA1DXoldNZgl0KKKHopw5d9ebZh7t1TRTd1sV4+tNOqqC+Z76vGQ
zV+KU8GUd4EpUY0CdxaWttGe59Igpj6fJXEWHJ9jMM5DcSx5wJHx6g8MnBLyahD1
pD/ru5bysLlQUEjlSIIr+A==

View File

@ -169,9 +169,8 @@ def nutrition():
if __name__ == '__main__':
#init_db()
app.run(debug=True)
app = ProxyFix(app, x_for=1, x_host=1)