devise_token_auth_demo icon indicating copy to clipboard operation
devise_token_auth_demo copied to clipboard

Demo "Authenticate using an oauth2 provider" is not working

Open inbox256 opened this issue 9 years ago • 2 comments

In the Authenticate using an oauth2 provider form, select Github or Google. The authentication proceeds without failure, however, subsequent requests show the Account Info values are nil.

FWIW, I built a similar app and can create a user with the omniauth github, but authenticate_user! fails in follow-up requests (and the auth headers are present). Perhaps this is also what the demo is experiencing.

inbox256 avatar Dec 18 '15 17:12 inbox256

I have the same problem. How can I solve this?

volfgox avatar Apr 09 '16 07:04 volfgox

Hey, repo owners! I got the same problem.

What kind of a template for callback path in github/google it should be? I've tried

  • http://mysuperdemo:3001/auth/github/callback It complains about: {"error"=>"redirect_uri_mismatch", "error_description"=>"The redirect_uri MUST match the registered callback URL for this application.", "error_uri"=>"https://developer.github.com/v3/oauth/#redirect-uri-mismatch", "state"=>"51dd36e07c347d8f65c86fa6eec17a489aa6ce653bba9aa7", "provider"=>"github"}

  • http://mysuperdemo:3001/omniauth/github/callback It just prints

an error occured

Twobraveheads avatar Jan 30 '17 21:01 Twobraveheads