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

client_id is incorrect #70

Open
denegny opened this issue Sep 29, 2018 · 5 comments
Open

client_id is incorrect #70

denegny opened this issue Sep 29, 2018 · 5 comments

Comments

@denegny
Copy link

denegny commented Sep 29, 2018

Hi, your strategies is:

require 'omniauth/strategies/oauth2'

module OmniAuth
  module Strategies
    
   # Authenticate to Vkontakte utilizing OAuth 2.0 and retrieve
    # basic user information.
    # documentation available here:
    # http://vk.com/dev/authentication
    #
    # @example Basic Usage
    #     use OmniAuth::Strategies::Vkontakte, 'API Key', 'Secret Key'
    #
    class Vkontakte < OmniAuth::Strategies::OAuth2
      class NoRawData < StandardError; end

API_VERSION = '5.8'

but in app have
error | "invalid_client" error_description | "client_id is incorrect"

@mamantoha
Copy link
Owner

Hi.

What are you trying to do? Do you set Secret key for you Vkontakte app?

@denegny
Copy link
Author

denegny commented Sep 30, 2018

Hi.

What are you trying to do? Do you set Secret key for you Vkontakte app?

yes, in env

@mamantoha
Copy link
Owner

Hi.

I checked and everything works correctly. It's not an issue with the gem. Please double-check secret_key.

@ExplosiveGM
Copy link

This code is confusing(readme.md):
provider :vkontakte, ENV['API_KEY'], ENV['API_SECRET']
Probably it can be better:
provider :vkontakte, ENV['VK_API_ID'], ENV['VK_API_SECRET']
I made mistake too

@mamantoha
Copy link
Owner

@ExplosiveGM this makes sense. Can you update readme and create PR? Thanks.

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

No branches or pull requests

3 participants