X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8cf505f8205a2c8e0c121b76e3101f7eaa662516..63cfe7a9b391e1a07c6c6c8b0fab10b1c875f1be:/services/api/lib/josh_id.rb 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