17 lines
351 B
Python
17 lines
351 B
Python
"""passbook OAuth_Provider"""
|
|
|
|
CORS_ORIGIN_ALLOW_ALL = True
|
|
REQUEST_APPROVAL_PROMPT = 'auto'
|
|
|
|
MIDDLEWARE = [
|
|
'oauth2_provider.middleware.OAuth2TokenMiddleware',
|
|
'corsheaders.middleware.CorsMiddleware',
|
|
]
|
|
INSTALLED_APPS = [
|
|
'oauth2_provider',
|
|
'corsheaders',
|
|
]
|
|
AUTHENTICATION_BACKENDS = [
|
|
'oauth2_provider.backends.OAuth2Backend',
|
|
]
|