Skip to content

Commit

Permalink
[api] Add proper configuration settings
Browse files Browse the repository at this point in the history
  • Loading branch information
romainr committed Jun 8, 2021
1 parent 810539e commit ecda037
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions desktop/core/src/desktop/settings.py
Expand Up @@ -293,16 +293,17 @@
),
}

JWT_AUTH = {
'JWT_VERIFY': True,
'JWT_VERIFY_EXPIRATION': True,
'JWT_LEEWAY': 0,
'JWT_EXPIRATION_DELTA': datetime.timedelta(seconds=86400),
'JWT_ALLOW_REFRESH': True,
'JWT_REFRESH_EXPIRATION_DELTA': datetime.timedelta(days=7),
'JWT_AUTH_HEADER_PREFIX': 'Bearer',
SIMPLE_JWT = {
'ACCESS_TOKEN_LIFETIME': datetime.timedelta(minutes=55),
'REFRESH_TOKEN_LIFETIME': datetime.timedelta(days=1),
'ROTATE_REFRESH_TOKENS': False,
'BLACKLIST_AFTER_ROTATION': True,
'UPDATE_LAST_LOGIN': False,
# 'SIGNING_KEY': SECRET_KEY,
'AUTH_HEADER_TYPES': ('Bearer',),
}


############################################################
# Part 4: Installation of apps
############################################################
Expand Down

0 comments on commit ecda037

Please sign in to comment.