Feature #2302
Facebook, Twitter, Github authentication?
Start date:
06 Jun 2014
Due date:
% Done:
100%
Related issues
History
#1 Updated by Andriy Lesyuk about 8 years ago
- Status changed from Open to In Progress
- % Done changed from 0 to 70
Currently, I’m getting the following error for Facebook:
Started GET "/auth/facebook/callback?code=...&state=..." for **.***.***.*** at 2016-10-23 10:52:11 +0000 Started GET "/auth/failure?message=invalid_credentials&origin=http%3A%2F%2Fprojects.andriylesyuk.com%2Flogin&strategy=facebook" for **.***.***.*** at 2016-10-23 10:52:12 +0000 ActionController::RoutingError (No route matches [GET] "/auth/failure"): ...
#2 Updated by Andriy Lesyuk about 8 years ago
Added the following code to init.rb
:
OmniAuth.config.on_failure do |env|
[200, {}, [env['omniauth.error'].inspect]]
end
Now getting:
#<OAuth2::Error: : {"error":{"message":"Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request","type":"OAuthException","code":100,"fbtrace_id":"..."}}>
#3 Updated by Andriy Lesyuk about 8 years ago
Looks like the fix is in omniauth-facebook 3.0.0...
#4 Updated by Andriy Lesyuk about 8 years ago
- Status changed from In Progress to Closed
- % Done changed from 70 to 100