Приложение для этого client_id не найдено

использую drf-social-oauth2

получаю ошибку "detail":"The application for this client_id does not exist.

curl -X POST -d "grant_type=convert_token&client_id=client_id&backend=google-oauth2&token=Client secret" http://localhost:8000/auth/convert-token

Настроила по документации, 
# Google configuration
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = здесь client_id
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = здесь secret key

# Define SOCIAL_AUTH_GOOGLE_OAUTH2_SCOPE to get extra permissions from Google.
SOCIAL_AUTH_GOOGLE_OAUTH2_SCOPE = [
    'https://www.googleapis.com/auth/userinfo.email',
    'https://www.googleapis.com/auth/userinfo.profile',
]

REST_FRAMEWORK = {
    'DEFAULT_AUTHENTICATION_CLASSES': (
        # 'oauth2_provider.ext.rest_framework.OAuth2Authentication',  # django-oauth-toolkit < 1.0.0
        'oauth2_provider.contrib.rest_framework.OAuth2Authentication',  # django-oauth-toolkit >= 1.0.0
        'drf_social_oauth2.authentication.SocialAuthentication',
    ),
}

AUTHENTICATION_BACKENDS = (
    # Others auth providers (e.g. Facebook, OpenId, etc)
    # Google  OAuth2
    'social_core.backends.google.GoogleOAuth2',
    # drf-social-oauth2
    'drf_social_oauth2.backends.DjangoOAuth2',
    # Django
    'django.contrib.auth.backends.ModelBackend',
)
INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'rest_framework',
    'polls',
    'oauth2_provider',
    'social_django',
    'drf_social_oauth2',
]

Приложение создала в админке, client_id и client_secret автоматически подтянулись, но они захешировались, выглядят другими. в терминале "POST /auth/convert-token HTTP/1.1" 400 63

а если захешированные данные всталяю в запрос(которые модель сгенирировала) то другая ошибка {"error":"access_denied","error_description":"Your credentials aren't allowed"}

Вернуться на верх