Deprecate OAUTH2_EXPIRES_{}
, which means:
OAUTH2_EXPIRES_AUTHORIZATION_CODE
OAUTH2_EXPIRES_IMPLICIT
OAUTH2_EXPIRES_PASSWORD
OAUTH2_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