X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/964ab3dd90ff1508efc0c77378cde2b3a4da1029..b0cbc39917df391c0f0e7f31d9d46c5cc9070520:/services/api/lib/josh_id.rb?ds=sidebyside diff --git a/services/api/lib/josh_id.rb b/services/api/lib/josh_id.rb index a63b25104c..1a6e38a431 100644 --- a/services/api/lib/josh_id.rb +++ b/services/api/lib/josh_id.rb @@ -17,6 +17,7 @@ module OmniAuth :last_name => raw_info['info']['last_name'], :email => raw_info['info']['email'], :identity_url => raw_info['info']['identity_url'], + :username => raw_info['info']['username'], } end @@ -42,7 +43,7 @@ module OmniAuth end def callback_url - full_host + script_name + callback_path + "?return_to=" + CGI.escape(request.params['return_to']) + full_host + script_name + callback_path + "?return_to=" + CGI.escape(request.params['return_to'] || '') end def raw_info