Mercurial > hg > soundsoftware-site
comparison test/mocks/open_id_authentication_mock.rb @ 1115:433d4f72a19b redmine-2.2
Update to Redmine SVN revision 11137 on 2.2-stable branch
author | Chris Cannam |
---|---|
date | Mon, 07 Jan 2013 12:01:42 +0000 |
parents | cbb26bc654de |
children |
comparison
equal
deleted
inserted
replaced
929:5f33065ddc4b | 1115:433d4f72a19b |
---|---|
14 | 14 |
15 protected | 15 protected |
16 | 16 |
17 def authenticate_with_open_id(identity_url = params[:openid_url], options = {}) #:doc: | 17 def authenticate_with_open_id(identity_url = params[:openid_url], options = {}) #:doc: |
18 if User.find_by_identity_url(identity_url) || identity_url.include?('good') | 18 if User.find_by_identity_url(identity_url) || identity_url.include?('good') |
19 extension_response_fields = {} | |
20 | |
19 # Don't process registration fields unless it is requested. | 21 # Don't process registration fields unless it is requested. |
20 unless identity_url.include?('blank') || (options[:required].nil? && options[:optional].nil?) | 22 unless identity_url.include?('blank') || (options[:required].nil? && options[:optional].nil?) |
21 extension_response_fields = {} | |
22 | 23 |
23 options[:required].each do |field| | 24 options[:required].each do |field| |
24 extension_response_fields[field.to_s] = EXTENSION_FIELDS[field.to_s] | 25 extension_response_fields[field.to_s] = EXTENSION_FIELDS[field.to_s] |
25 end unless options[:required].nil? | 26 end unless options[:required].nil? |
26 | 27 |