Oauth provider settings
This commit is contained in:
@@ -42,9 +42,10 @@ TESTING = False
|
|||||||
|
|
||||||
ALLOWED_HOSTS = CFG['allowed_hosts']
|
ALLOWED_HOSTS = CFG['allowed_hosts']
|
||||||
|
|
||||||
OAUTH2_PROVIDER_ACCESS_TOKEN_MODEL = 'oauth2_provider.AccessToken'
|
#OAUTH2_PROVIDER_ACCESS_TOKEN_MODEL = 'oauth2_provider.AccessToken'
|
||||||
OAUTH2_PROVIDER_APPLICATION_MODEL = 'oauth2_provider.Application'
|
#OAUTH2_PROVIDER_APPLICATION_MODEL = 'oauth2_provider.Application'
|
||||||
OAUTH2_PROVIDER_REFRESH_TOKEN_MODEL = 'oauth2_provider.RefreshToken'
|
#OAUTH2_PROVIDER_REFRESH_TOKEN_MODEL = 'oauth2_provider.RefreshToken'
|
||||||
|
#OAUTH2_PROVIDER_ACCESS_TOKEN_EXPIRE_SECONDS = 3600
|
||||||
|
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
@@ -411,7 +412,11 @@ OAUTH2_PROVIDER = {
|
|||||||
'SCOPES': {'read': 'Read scope', 'write': 'Write scope', 'groups': 'Access to your groups'},
|
'SCOPES': {'read': 'Read scope', 'write': 'Write scope', 'groups': 'Access to your groups'},
|
||||||
'ALLOWED_REDIRECT_URI_SCHEMES': ["http",
|
'ALLOWED_REDIRECT_URI_SCHEMES': ["http",
|
||||||
"https",
|
"https",
|
||||||
"rowingcoachexport"]
|
"rowingcoachexport"],
|
||||||
|
'ACCESS_TOKEN_MODEL': 'oauth2_provider.AccessToken',
|
||||||
|
'APPLICATION_MODEL': 'oauth2_provider.Application',
|
||||||
|
'REFRESH_TOKEN_MODEL': 'oauth2_provider.RefreshToken',
|
||||||
|
'ACCESS_TOKEN_EXPIRE_SECONDS': 3600,
|
||||||
# 'OAUTH2_BACKEND_CLASS': 'oauth2_provider.oauth2_backends.JSONOAuthLibCore'
|
# 'OAUTH2_BACKEND_CLASS': 'oauth2_provider.oauth2_backends.JSONOAuthLibCore'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user