14718: Issue salted token when passing 'remote' param to login.
authorLucas Di Pentima <ldipentima@veritasgenetics.com>
Sat, 26 Jan 2019 00:04:58 +0000 (21:04 -0300)
committerLucas Di Pentima <ldipentima@veritasgenetics.com>
Sat, 26 Jan 2019 00:04:58 +0000 (21:04 -0300)
commit4bb449eb541e7bc22dfb09c31451d2258f189495
tree4ccbfd98c091022706ff7ba5c961690546749877
parent4620478d694697eff07e501187d784c6c98ccfa9
14718: Issue salted token when passing 'remote' param to login.

When logging in with a 'remote' parameter, it's encoded into the return_to
param passed to the SSO server so that it's received back after the user
is authenticated.
When the omniauth callback receives a remote parameter inside the return_to
url, it returns the salted version of the client token.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>
services/api/app/controllers/user_sessions_controller.rb
services/api/app/models/api_client_authorization.rb
services/api/test/functional/user_sessions_controller_test.rb
services/api/test/integration/user_sessions_test.rb