Compare commits

..

No commits in common. "7c43a4d91994b657cf5810cc81310421319c4f84" and "520552ec709f85bc64605d0f014a4e247488c4c4" have entirely different histories.

2 changed files with 2 additions and 6 deletions

View File

@ -23,11 +23,7 @@ class Services::RsAuthsController < Services::BaseController
end
def launch_app
user_address = Rails.env.development? ?
"#{current_user.cn}@localhost:3000" :
current_user.address
launch_url = "#{@auth.launch_url}#remotestorage=#{user_address}"
launch_url = "#{@auth.launch_url}#remotestorage=#{current_user.address}&access_token=#{@auth.token}"
redirect_to launch_url, allow_other_host: true
end

View File

@ -31,7 +31,7 @@ RSpec.describe Services::RsAuthsController, type: :controller do
end
it "redirects to the given URL with the correct RS URL fragment params" do
launch_url = "https://app.example.com#remotestorage=#{user.address}"
launch_url = "https://app.example.com#remotestorage=#{user.address}&access_token=#{@auth.token}"
expect(response).to redirect_to(launch_url)
end
end