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

  • SEARCH
  • Home
  • 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 8705551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:23:25+00:00 2026-06-13T03:23:25+00:00

I am using omniauth-identity and configure its fail on registration. My files: config/initializers/omniauth.rb OmniAuth.config.logger

  • 0

I am using omniauth-identity and configure its “fail on registration”.

My files:

config/initializers/omniauth.rb

OmniAuth.config.logger = Rails.logger

Rails.application.config.middleware.use OmniAuth::Builder do
  #...
  provider :identity, on_failed_registration: lambda { |env|
    IdentitiesController.action(:new).call(env)
  }
end

config/routes.rb

Wie::Application.routes.draw do
  root to: 'categories#index'

  ActiveAdmin.routes(self)
  devise_for :admin_users, ActiveAdmin::Devise.config

  match 'auth/:provider/callback', to: 'sessions#create'
  match 'auth/failure', to: 'sessions#failure'
  match 'signout', to: 'sessions#destroy', as: 'signout'
  resources :identities#, only: [:new]
  resources :categories, path: '', only: [:index] do
    resources :entries, path: '', only: [:index, :show]
  end
end

app/controllers/identities_controller.rb

class IdentitiesController < ApplicationController
  def new
    ariane.add "New Account"

    @identity = env['omniauth.identity']
  end
end

When I have a failure on registration (passing incorrect mail), I get the following:

in browser:

Routing Error

No route matches {} Try running rake routes for more information on
available routes.

in server log:

Started POST “/auth/identity/register” for 127.0.0.1 at 2012-07-16
17:35:48 +0300 (0.1ms) begin transaction Identity Exists (0.2ms)
SELECT 1 AS one FROM “identities” WHERE “identities”.”email” = ‘foo’
LIMIT 1 (0.1ms) rollback transaction Processing by
IdentitiesController#new as HTML Parameters: {“utf8″=>”✓”,
“authenticity_token”=>”HIDDEN :)>=”,
“name”=>””, “email”=>”foo”, “password”=>”[FILTERED]”,
“password_confirmation”=>”[FILTERED]”, “commit”=>”Register”}
Rendered identities/new.html.erb within layouts/application (11.2ms)
Completed 500 Internal Server Error in 44ms

ActionController::RoutingError (No route matches {}):
app/views/layouts/application.html.erb:35:in
_app_views_layouts_application_html_erb___1224394470845933684_70120630781720'
config/initializers/omniauth.rb:8:in
call’
config/initializers/omniauth.rb:8:in `block (2 levels) in ‘

Rendered
/Users/ayia/.rvm/gems/ruby-1.9.3-p125@global/gems/actionpack-3.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.6ms)

What can be the reason for this? What did I wrong?

UPDATE
What I do not understand is – why I get Started POST "/auth/identity/register"? According to omniauth configuration I should get the view correspondent to the IdentitiesController.action(:new), i.e. /identities/new …

  • 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-13T03:23:26+00:00Added an answer on June 13, 2026 at 3:23 am

    The issue cannot be reproduced on the 1.1.0 version of omniauth-identiry. So update to latest version fixed the issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a Rails 3.0 application and am using OmniAuth + Identity for authentication
I'm building a Rails application using Devise. Devise is all set up even omniauth.
I'm using OmniAuth Identity for normal logins. Rails 3.2.3 and Ruby 1.9.3p194. Currently, when
I have one rails application, using omniauth. And also save token in my database.
Using the omniauth plugin for Rails to find a user, I get a SQL
We have a web app running on Rails, using Devise and OmniAuth for user
I am developing a Rails app using OmniAuth, OmniAuth-salesforce and this gem: https://github.com/heroku/databasedotcom I
Edit : What I recommend now with any Ruby application to use omniauth gem
I am using the paperclip gem with Omniauth (with Facebook) in a Rails 3
I am using OmniAuth gem for Twitter authentication, i am trying to configure force_login

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.