I'm looking for a part-time remote job.

Hire me


I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).


Follow me:

Feature #2302

Facebook, Twitter, Github authentication?

Added by Andriy Lesyuk over 10 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
06 Jun 2014
Due date:
% Done:

100%



Related issues

Related to Projects - Bug #2379: Google OpenID Won't Fix 30 Apr 2015

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":"..."}}>

#4 Updated by Andriy Lesyuk about 8 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 70 to 100

Also available in: Atom PDF

Terms of use | Privacy policy