Skip to content

Commit

Permalink
Merge pull request #72 from forza-mor-rotterdam/oidc-renew
Browse files Browse the repository at this point in the history
oidc token renew to 5min
  • Loading branch information
mguikema authored Jun 28, 2023
2 parents 46c4c01 + 1c3cce7 commit 7d141c0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/apps/regie/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ def melding_naar_tijdlijn(melding: dict):
row_dict = {
"mg": mg,
"row": row,
"afgesloten": False,
}
tijdlijn_data.append(row_dict)

Expand Down
19 changes: 17 additions & 2 deletions app/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@
"https://serviceformulier-acc.benc.forzamor.nl/melding/aanmaken",
)

LOG_LEVEL = "DEBUG" if DEBUG else "INFO"

LOGGING = {
"version": 1,
"disable_existing_loggers": False,
Expand All @@ -292,18 +294,28 @@
},
"handlers": {
"console": {
"level": "INFO",
"level": "DEBUG",
"class": "logging.StreamHandler",
"stream": sys.stdout,
"formatter": "verbose",
},
"file": {
"level": "DEBUG",
"class": "logging.FileHandler",
"filename": "/app/uwsgi.log",
"formatter": "verbose",
},
},
"loggers": {
"": {
"handlers": ["console"],
"level": "INFO",
"level": LOG_LEVEL,
"propagate": True,
},
"celery": {
"handlers": ["console", "file"],
"level": "INFO",
},
},
}

Expand Down Expand Up @@ -358,6 +370,9 @@
OIDC_OP_LOGOUT_URL_METHOD = "apps.authenticatie.views.provider_logout"
ALLOW_LOGOUT_GET_METHOD = True
OIDC_STORE_ID_TOKEN = True
OIDC_RENEW_ID_TOKEN_EXPIRY_SECONDS = int(
os.getenv("OIDC_RENEW_ID_TOKEN_EXPIRY_SECONDS", "300")
)

LOGIN_REDIRECT_URL = "/"
LOGIN_REDIRECT_URL_FAILURE = "/"
Expand Down

0 comments on commit 7d141c0

Please sign in to comment.