Verified Commit 60347ccd authored by Georg Krause's avatar Georg Krause
Browse files

Allow oauth token expiration time to be configured

parent df8d865a
Pipeline #17194 passed with stages
in 11 minutes and 26 seconds
...@@ -621,7 +621,9 @@ OAUTH2_PROVIDER = { ...@@ -621,7 +621,9 @@ OAUTH2_PROVIDER = {
# we keep expired tokens for 15 days, for tracability # we keep expired tokens for 15 days, for tracability
"REFRESH_TOKEN_EXPIRE_SECONDS": 3600 * 24 * 15, "REFRESH_TOKEN_EXPIRE_SECONDS": 3600 * 24 * 15,
"AUTHORIZATION_CODE_EXPIRE_SECONDS": 5 * 60, "AUTHORIZATION_CODE_EXPIRE_SECONDS": 5 * 60,
"ACCESS_TOKEN_EXPIRE_SECONDS": 60 * 60 * 10, "ACCESS_TOKEN_EXPIRE_SECONDS": env.int(
"ACCESS_TOKEN_EXPIRE_SECONDS", default=60 * 60 * 10
),
"OAUTH2_SERVER_CLASS": "funkwhale_api.users.oauth.server.OAuth2Server", "OAUTH2_SERVER_CLASS": "funkwhale_api.users.oauth.server.OAuth2Server",
} }
OAUTH2_PROVIDER_APPLICATION_MODEL = "users.Application" OAUTH2_PROVIDER_APPLICATION_MODEL = "users.Application"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment