Defect #11778

openid : Fields not taken when logged in using Google account. Redmine 2.0.3

Added by Anup Nair about 10 years ago. Updated 12 months ago.

Status:ClosedStart date:
Priority:HighDue date:
Assignee:-% Done:


Target version:-
Resolution:Wont fix Affected version:2.0.3


Redmine version 2.0.3.stable
Ruby version 1.8.7 (x86_64-linux)
Rails version 3.2.6
Environment production
Database adapter MySQL
Redmine plugins:
no plugin installed

I deployed the above redmine instance running over apache with passenger.

I enabled OpenID authentication in the settings.
Upon using Google App Account for login it redirects to Google for login and authorization. Works fine until here.

Thereafter, it shows a redmine registration page with following errors:

Login can't be blank
First name can't be blank
Last name can't be blank
Email can't be blank

I have to manually enter each field. Ideally this should have come automatically.

I have tried OpenID-fix but it doesn't work with redmine 2.0.3.

Entries in the application log is given below.

Started GET "/login?_method=post&" for at Wed Sep 05 17:02:43 +0530 2012
Error attempting to use stored discovery information: OpenID::TypeURIMismatch
Attempting discovery to verify endpoint
Performing discovery on
WARNING: making https request to without verifying server certificate; no CA path was specified.
Processing by AccountController#login as HTML
WARNING: Can't verify CSRF token authenticity
  Rendered account/register.html.erb within layouts/base (15.1ms)
Completed 200 OK in 63ms (Views: 22.7ms | ActiveRecord: 5.7ms)

I have tried looking around for a fix for 2.0.3 but failed to find any trackers covering this issue.

If this has been reported & fixed before, then kindly provide me the link to the same.

redmine-openid_ax_requests_fix_google_yahoo_registration-DrewDahl-11778.patch Magnifier (4.48 KB) Andrew Dahl, 2012-12-16 14:01

redmine-openid_ax_requests_fix_google_yahoo_registration-2.3.1.patch - OpenID patch for 2.3.1 (3.5 KB) Siebe Joris Jochems, 2013-06-19 10:12

Related issues

Related to Redmine - Defect #8399: openid logins not working with 2.0 redirects Closed 2011-05-18
Related to Redmine - Defect #3780: Attribute exchange with OpenID providers Closed 2009-08-25


#1 Updated by Toshi MARUYAMA about 10 years ago

  • Assignee deleted (Jonas De Meulenaere)

#2 Updated by Lars Pedersen about 10 years ago

I see the same problem. Are we doing anything wrong here ?

#3 Updated by Andrew Dahl almost 10 years ago

The problem is that Google, Yahoo, and, from what I understand, most big name OpenID providers are no longer supporting SReg (Simple Registration) requests and have switched to AX (Attribute Exchange). Redmine is currently setup to use SReg.

I've attached a patch that works on Google and Yahoo. I haven't tested it on other providers, but I'm fairly confident it will work as well, if not better, than the current implementation.

The patch is to be applied against 2.1.4.stable

I tested it using Ruby 1.9.3 and Rails 3.2.8

#4 Updated by Anonymous over 9 years ago

I think the openid-fix plugin also caters for this:

But of course this should be fixed / implemented in Redmine itself.

Finally, see also issue #8399.

#5 Updated by Antoine Beaupré over 9 years ago

This may be a dupe of #3780 - although it doesn't have a patch like here.

#6 Updated by Siebe Joris Jochems over 9 years ago

I've tried to apply the patch to Redmine 2.3.1 and found out it didn't work 'out of the box'. So here is an updated patch. :-)

It's been 10 months already...

#7 Updated by Go MAEDA 12 months ago

  • Status changed from New to Closed
  • Resolution set to Wont fix

The OpenID support has been dropped by #35755 for the upcoming Redmine 5.0.0.

Also available in: Atom PDF