X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/672ecbf2d4ca909514c5f609ed76b020200cdf45..0fe4cadebeb5910e553b69fce955283168758e34:/services/api/app/controllers/user_sessions_controller.rb diff --git a/services/api/app/controllers/user_sessions_controller.rb b/services/api/app/controllers/user_sessions_controller.rb index 20633153e7..020dfa53b8 100644 --- a/services/api/app/controllers/user_sessions_controller.rb +++ b/services/api/app/controllers/user_sessions_controller.rb @@ -70,7 +70,7 @@ class UserSessionsController < ApplicationController end while (uuid = user.redirect_to_user_uuid) - user = User.where(uuid: uuid).first + user = User.unscoped.where(uuid: uuid).first if !user raise Exception.new("identity_url #{omniauth['info']['identity_url']} redirects to nonexistent uuid #{uuid}") end @@ -159,7 +159,7 @@ class UserSessionsController < ApplicationController else callback_url += '?' end - callback_url += 'api_token=' + api_client_auth.api_token + callback_url += 'api_token=' + api_client_auth.token redirect_to callback_url end