Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8786119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:32:08+00:00 2026-06-13T21:32:08+00:00

I have implemented the Devise Omniauth authentication in my Rails application successfully using the

  • 0

I have implemented the Devise Omniauth authentication in my Rails application successfully using the following tutorial by git
OmniAuth: Overview

But it will not support multiple authentications , may be you all know that , and have faced the same issue before, but if you people have tweaked the same problem successfully please let me know the solution .

This is the scenario that i need to accomplish using Omniauth + Devise.

we have a user named John and he already have accounts in both Google & Facebook with the same email id “John@yopmail.com”.

So for the first time John trying to log-in with his Google account, john have successfully logged in this time.

but for the second time john trying to log-in with his facebook account, this time our application redirects john to the devise registration_url , without letting him signing in with his facebook account.

I know why this is hapepnig because devise will internally validates the uniqueness of email.But i am very curious to know that , is there any way to tweak this issue so that we can achieve multiple authentications . Stack-Overflow have done the same very nicely.

Please help me to find out the solution.

Thank you..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T21:32:09+00:00Added an answer on June 13, 2026 at 9:32 pm

    try this, in your devise.rb file comment this line or change email and use difference for that and then try

      # to authenticate or find a user. Default is :email.
      config.case_insensitive_keys = [ :email ]
      # modifying a user and when used to authenticate or find a user. Default is :email.
      config.strip_whitespace_keys = [ :email ]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have successfully implemented login with Facebook using Devise and OmniAuth (built into Devise).
I'm working on Ruby on Rails 3 application. Already, I have implemented authentication and
I have implemented a application to check whether bluetooth is ON/OFF using CoreBluetooth.framework but
I have implemented Devise for Authentication and Authorization in ROR application everything seems fine
I am using the devise gem for authentication and have the following before_filter in
I have implemented Devise in a Rails 3 application and I need admin users
I have Devise implemented in a Rails 3 application, with the :registerable and :confirmable
I have implemented the code in Devise call backs in my application controller. First
I have implemented clean URLs using the following in my .htaccess RewriteEngine on RewriteCond
After following: https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview I can sign up a user via Facebook. But I'm struggling

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.