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
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