X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a32c4f9997a0c8941b62668c5e59941985359c05..66fc74001e777ac7ceff2b02cfc459b1368f42f3:/services/api/lib/josh_id.rb diff --git a/services/api/lib/josh_id.rb b/services/api/lib/josh_id.rb index a63b25104c..bb6c1f48a8 100644 --- a/services/api/lib/josh_id.rb +++ b/services/api/lib/josh_id.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'omniauth-oauth2' module OmniAuth module Strategies @@ -17,6 +21,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 +47,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