provider¶
provider.constants¶
- provider.constants.RESPONSE_TYPE_CHOICES¶
- Settings:
OAUTH_RESPONSE_TYPE_CHOICES
The response types as outlined by Section 3.1.1
- provider.constants.SCOPES¶
- Settings:
OAUTH_SCOPES
A choice of scopes. A detailed implementation is left to the developer. The current default implementation in
provider.oauth2.scopemakes use of bit shifting operations to combine read and write permissions.
- provider.constants.EXPIRE_DELTA¶
- Settings:
OAUTH_EXPIRE_DELTA
- Default:
datetime.timedelta(days=365)
The time to expiry for access tokens as outlined in Section 4.2.2 and Section 5.1.
- provider.constants.EXPIRE_CODE_DELTA¶
- Settings:
OAUTH_EXPIRE_CODE_DELTA
- Default:
datetime.timedelta(seconds=10*60)
The time to expiry for an authorization code grant as outlined in Section 4.1.2.
- provider.constants.DELETE_EXPIRED¶
- Settings:
OAUTH_DELETE_EXPIRED
- Default:
False
To remove expired tokens immediately instead of letting them persist, set to True.
- provider.constants.ENFORCE_SECURE¶
- Settings:
OAUTH_ENFORCE_SECURE
- Default:
False
To enforce secure communication on application level, set to True.
- provider.constants.SESSION_KEY¶
- Settings:
OAUTH_SESSION_KEY
- Default:
“oauth”
Session key prefix to store temporary data while the user is completing the authentication / authorization process.