Project

General

Profile

Actions

Patch #5966

closed

change to allow openID to use Google Apps

Added by Chris Mague over 14 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
OpenID
Target version:
-
Start date:
2010-07-26
Due date:
% Done:

100%

Estimated time:

Description

diff -r ./config/environment.rb /home/chris/tmp/redmine/them/redmine-1.0.0/config/environment.rb
61,62d60
< 
< require 'gapps_openid'
diff -r ./app/controllers/account_controller.rb /home/chris/tmp/redmine/them/redmine-1.0.0/app/controllers/account_controller.rb
161,164c161
<     r = authenticate_with_open_id(openid_url, :required => ["http://schema.openid.net/contact/email"], :return_to => signin_url) do |result, identity_url, registration|
<       logger.warn "Failed login because: '#{result.inspect} at #{Time.now.utc}" 
<       logger.warn "Failed login because: '#{result} at #{Time.now.utc}" 
<       logger.warn "Failed login because: '#{result.message} at #{Time.now.utc}" 
---
>     authenticate_with_open_id(openid_url, :required => [:nickname, :fullname, :email], :return_to => signin_url) do |result, identity_url, registration|
166,170c163
<         logger.warn "identity_url: '#{identity_url} at #{Time.now.utc}" 
<         logger.warn "registration: '#{registration.inspect} at #{Time.now.utc}" 
<         #user = User.find_or_initialize_by_identity_url(identity_url)
<         logger.warn "registration: '#{registration["http://schema.openid.net/contact/email"][0]}'" 
<         user = User.find_by_mail(registration["http://schema.openid.net/contact/email"][0])
---
>         user = User.find_or_initialize_by_identity_url(identity_url)
Actions

Also available in: Atom PDF