Deprecate OAUTH2_EXPIRES_{}, which means:
OAUTH2_EXPIRES_AUTHORIZATION_CODEOAUTH2_EXPIRES_IMPLICITOAUTH2_EXPIRES_PASSWORDOAUTH2_EXPIRES_CLIENT_CREDENTIALS
It is replaced with a diction configuration:
OAUTH2_EXPIRES_IN = {
'authorization_code': 864000,
'password': 3600,
}Why? Because extended grant types are named like: urn:ietf:params:oauth:grant-type:jwt-bearer. We can't use a plain string as a key anymore.
https://git.io/vpCH5