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 8402087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:57:35+00:00 2026-06-09T21:57:35+00:00

I am trying to do OmniAuth OpenID with Google Apps in Ruby on Rails.

  • 0

I am trying to do OmniAuth OpenID with Google Apps in Ruby on Rails. I know it should work out-of-the-box if I specify “:identifier => ‘https://www.google.com/accounts/o8/site-xrds?hd=example.com'” where example.com is the domain that my targeted users come from.

The user can get redirected to Google when accessing /auth/google without a problem, and this openid.identity can be returned from Google:

... &openid.identity=http://example.com/openid?id=xxxxxxxxxxxxxxxxxxxxxxx ...

However, the example.com I am working with does not have the correct “rel=’openid2.provider'” <link /> tags set up at http://example.com/, therefore the discovery fails when omniauth-openid tries to check with Google again.

Is there a quick and clean way to work around the default discovery behavior so that I can define https://www.google.com/a/example.com/o8/ud?be=o8 as the server directly without performing the automatic discovery?

Thanks!

  • 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-09T21:57:36+00:00Added an answer on June 9, 2026 at 9:57 pm

    I think omniauth-openid uses ruby-openid. If so, you should be able to get it work easily:

    gem install ruby-openid-apps-discovery
    

    Then throw in somewhere before making the request

    require 'gapps_openid'
    

    Google Apps has a slightly different discovery protocol, which is what that gem provides.

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

Sidebar

Related Questions

I'm trying to figure out the differences between omniauth ( https://github.com/intridea/omniauth ) and oauth-plugin
I'm trying to follow along with Railscasts #235 (Omniauth in a rails app). Having
I'm currently trying to use omniauth in my rails application. I was just curious,
I'm trying to get offline access token (refresh_token) with omniauth google-oauth2 strategy. This is
I'm trying to use OmniAuth in a sinatra app with google as the login
I'm new in rails and I'm trying to integrate omniauth and the login with
I'm using Rails, Devise, and Omniauth, and I'm trying to login using facebook connect.
I'm trying to incorporate omniauth in my rails application. I was wondering though, what
I had a recent error using omniauth trying to populate some fields from Google's
I am getting error in rails - Faraday::Error::ConnectionFailed. I am trying RailsCast Omniauth Episode

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.