mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Set REFRESH_TOKEN_EXPIRE_SECONDS
- Set OAUTH2 REFRESH_TOKEN_EXPIRE_SECONDS to 1 month (2628000 seconds) - If not set, awx-manage cleartokens, or cleanup_tokens, will not work properly - Once cleartokens is run, this setting is the amount of time after an access token expires that we keep its refresh token in the database
This commit is contained in:
parent
329630ce2a
commit
db1ad2de95
@ -338,7 +338,8 @@ OAUTH2_PROVIDER_ACCESS_TOKEN_MODEL = 'main.OAuth2AccessToken'
|
||||
OAUTH2_PROVIDER_REFRESH_TOKEN_MODEL = 'oauth2_provider.RefreshToken'
|
||||
|
||||
OAUTH2_PROVIDER = {'ACCESS_TOKEN_EXPIRE_SECONDS': 31536000000,
|
||||
'AUTHORIZATION_CODE_EXPIRE_SECONDS': 600}
|
||||
'AUTHORIZATION_CODE_EXPIRE_SECONDS': 600,
|
||||
'REFRESH_TOKEN_EXPIRE_SECONDS': 2628000}
|
||||
ALLOW_OAUTH2_FOR_EXTERNAL_USERS = False
|
||||
|
||||
# LDAP server (default to None to skip using LDAP authentication).
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user