push
circleci
Upgrade to mediaflux_dev v0.17.0 (#2118) Co-authored-by: Hector Correa <hector_correa@princeton.edu>
1 of 1 new or added line in 1 file covered. (100.0%)
941 existing lines in 40 files now uncovered.2697 of 3077 relevant lines covered (87.65%)
426.44 hits per line
| 1 |
# frozen_string_literal: true
|
|
|
UNCOV
2
|
class Users::MediafluxCallbacksController < ApplicationController |
2✔ |
|
UNCOV
3
|
def passthru |
2✔ |
|
UNCOV
4
|
session[:original_path] = params["path"] |
1✔ |
|
UNCOV
5
|
redirect_to session[:cas_login_url], allow_other_host: true |
1✔ |
|
UNCOV
6
|
end
|
|
| 7 |
|
|
|
UNCOV
8
|
def cas |
2✔ |
|
UNCOV
9
|
ticket = params[:ticket]
|
2✔ |
|
UNCOV
10
|
uri = URI.parse(session[:cas_validation_url]) |
2✔ |
|
UNCOV
11
|
token = "#{uri.query}#{ticket}"
|
2✔ |
|
UNCOV
12
|
current_user.mediaflux_login(token, session) |
2✔ |
|
UNCOV
13
|
redirect_to(session["original_path"] || dashboard_path)
|
2✔ |
|
UNCOV
14
|
end
|
|
|
UNCOV
15
|
end
|