10008: Move test setup from __init__() to setUp()
[arvados.git] / services / api / lib / josh_id.rb
index a63b25104cc5b2415324a4d71fc89e75baa2ff73..1a6e38a4318657ccba4f3b86af08bb094401aa4c 100644 (file)
@@ -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