oauth2 not working
This commit is contained in:
@@ -72,8 +72,8 @@ INSTALLED_APPS = [
|
||||
'datetimewidget',
|
||||
'rest_framework_swagger',
|
||||
'oauth2_provider',
|
||||
#'provider',
|
||||
#'provider.oauth2',
|
||||
# 'provider',
|
||||
# 'provider.oauth2',
|
||||
'corsheaders',
|
||||
'analytical',
|
||||
'cookielaw',
|
||||
@@ -194,6 +194,8 @@ DATABASES = {
|
||||
# Password validation
|
||||
# https://docs.djangoproject.com/en/1.9/ref/settings/#auth-password-validators
|
||||
|
||||
AUTH_USER_MLDEL = 'user.User'
|
||||
|
||||
AUTH_PASSWORD_VALIDATORS = [
|
||||
{
|
||||
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
|
||||
@@ -456,7 +458,7 @@ OAUTH2_PROVIDER = {
|
||||
'ACCESS_TOKEN_MODEL': 'oauth2_provider.AccessToken',
|
||||
'APPLICATION_MODEL': 'oauth2_provider.Application',
|
||||
'REFRESH_TOKEN_MODEL': 'oauth2_provider.RefreshToken',
|
||||
'ACCESS_TOKEN_EXPIRE_SECONDS': 360000,
|
||||
'ACCESS_TOKEN_EXPIRE_SECONDS': 3600000,
|
||||
"PKCE_REQUIRED": False,
|
||||
# 'OAUTH2_BACKEND_CLASS': 'oauth2_provider.oauth2_backends.JSONOAuthLibCore'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user