Skip to content
Snippets Groups Projects
Verified Commit 60347ccd authored by Georg Krause's avatar Georg Krause
Browse files

Allow oauth token expiration time to be configured

parent df8d865a
No related branches found
No related tags found
No related merge requests found
Pipeline #17194 passed with warnings
......@@ -621,7 +621,9 @@ OAUTH2_PROVIDER = {
# we keep expired tokens for 15 days, for tracability
"REFRESH_TOKEN_EXPIRE_SECONDS": 3600 * 24 * 15,
"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_PROVIDER_APPLICATION_MODEL = "users.Application"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment