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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:57:07+00:00 2026-06-17T00:57:07+00:00

We have gmail openid working for more than a year with Redmine 1.3.1 (Rails

  • 0

We have gmail openid working for more than a year with Redmine 1.3.1 (Rails 2 Mongrel). I have upgraded a separate box to Redmine 2.0.3 (Rails 3 Passenger), but when I switch over from the old instance to the upgraded instance all users are prompted with the Google authorize application screen and if they click yes they are prompted with the Redmine registration screen.

I have transferred the rails session secret_token to the upgraded instance along with the entire database. I followed exactly this procedure in the past when upgrading from Redmine 1.2 to 1.3.1 and it worked perfectly. If I register a new account on our new upgraded Redmine instance and I go to my user account settings in gmail I see that there are two authorized applications for Redmine for the same URL.

It looks like the root of the problem is the openid.realm passed to the OpenID provider when authenticating. When the user is sent to Google, the url parameters has changed from:

openid.realm=http://our.domain.com/redmine/
openid.return_to=http://our.domain.com/redmine/login?_method%3Dpost%26open_id_complete%3D1

to:

openid.realm=http://our.domain.com
openid.return_to=http://our.domain.com/redmine/login?_method%3Dpost

The realm doesn’t contain the /redmine in the upgraded instance, after manually editing the browser URL I have established that adding this section will fix the problem. What can I can I do to get it to generate the correct openid.realm but still work in Passenger. Is relative root url handled at Apache level instead of rails level in Passenger?

Gems used: open_id_authentication, ruby-openid, rack-openid.

Regards,
Pierre

  • 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-17T00:57:09+00:00Added an answer on June 17, 2026 at 12:57 am

    Doesn’t seem like there is a elegant solution. I monkey-patched the rack_openid gem to force the ream_url. Place this in an initializer somewhere:

    class Rack::OpenID
      alias :super_realm_url :realm_url
    
      def realm_url(req)
        super_realm_url(req) + "/redmine/"
      end
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have configured smtp gmail for mail sending. It sends mail well, but when
I am developing an application in xmpp.I have gmail and facebook contacts in a
Google Reader and Gmail have scrollable divs that has a shadow on top if
I have to read Gmail's imap mail with a Python script with Django, and
All Gmail users should have already noticed that file upload progress bar has been
I have used the module Mail::Webmail::Gmail to read the new messages in my Gmail
I have multiple email addresses linked to my gmail account. I am signed up
I have email addresses like user1@gmail.com , user2@ymail.com user3@hotmail.com ... etc. I want a
I have several groups in my gmail account and I want to get for
I have written a perl script to send email using the gmail's smtp server:

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.