Skip to content
Snippets Groups Projects
Verified Commit 99bfe5c2 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Automatically clean up OAuth tokens after 24 hours

parent 4f3fd826
No related branches found
No related tags found
1 merge request!1077Automatically clean up OAuth tokens after 24 hours
Pipeline #84580 passed
...@@ -35,6 +35,7 @@ Fixed ...@@ -35,6 +35,7 @@ Fixed
~~~~~ ~~~~~
* Celery's logging did not honour Django's logging level * Celery's logging did not honour Django's logging level
* Automatically clean up expired OAuth tokens after 24 hourse
`2.10.1`_ - 2022-07-24 `2.10.1`_ - 2022-07-24
---------------------- ----------------------
......
...@@ -400,6 +400,7 @@ OAUTH2_PROVIDER = { ...@@ -400,6 +400,7 @@ OAUTH2_PROVIDER = {
"SCOPES_BACKEND_CLASS": "aleksis.core.util.auth_helpers.AppScopes", "SCOPES_BACKEND_CLASS": "aleksis.core.util.auth_helpers.AppScopes",
"OAUTH2_VALIDATOR_CLASS": "aleksis.core.util.auth_helpers.CustomOAuth2Validator", "OAUTH2_VALIDATOR_CLASS": "aleksis.core.util.auth_helpers.CustomOAuth2Validator",
"OIDC_ENABLED": True, "OIDC_ENABLED": True,
"REFRESH_TOKEN_EXPIRE_SECONDS": _settings.get("oauth2.token_expiry", 86400),
} }
OAUTH2_PROVIDER_APPLICATION_MODEL = "core.OAuthApplication" OAUTH2_PROVIDER_APPLICATION_MODEL = "core.OAuthApplication"
OAUTH2_PROVIDER_GRANT_MODEL = "core.OAuthGrant" OAUTH2_PROVIDER_GRANT_MODEL = "core.OAuthGrant"
......
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