Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Janek
funkwhale
Commits
60347ccd
Verified
Commit
60347ccd
authored
Nov 19, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
api/config/settings/common.py
View file @
60347ccd
...
...
@@ -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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment