Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{"error":"invalid_client","error_description":"client_id is undefined"} #89

Closed
ananevam opened this issue Jan 25, 2023 · 1 comment · Fixed by #90
Closed

{"error":"invalid_client","error_description":"client_id is undefined"} #89

ananevam opened this issue Jan 25, 2023 · 1 comment · Fixed by #90

Comments

@ananevam
Copy link

ananevam commented Jan 25, 2023

В геме oauth2 поменялась auth_scheme по умолчанию с request_body на basic_auth.
Если у вас возникает ошибка client_id is undefined, нужно добавить настройку client_options - auth_scheme

config.omniauth :vkontakte,
  ENV['VK_API_ID'], ENV['VK_API_SECRET'],
  client_options: {
    auth_scheme: 'request_body'
  }

Такая же проблема в геме omniauth-apple - nhosoya/omniauth-apple#85

@mamantoha
Copy link
Owner

@ananevam fixed.

Или обновить omniauth-vkontakte до последней версии 1.8.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants