circleci
12 of 12 new or added lines in 1 file covered. (100.0%)
13 existing lines in 1 file now uncovered.2633 of 2937 relevant lines covered (89.65%)
331.45 hits per line
| 1 |
# frozen_string_literal: true
|
|
|
UNCOV
2
|
class Users::MediafluxCallbacksController < ApplicationController |
× |
|
UNCOV
3
|
def passthru |
× |
|
UNCOV
4
|
session[:original_path] = params["path"] |
× |
|
UNCOV
5
|
redirect_to session[:cas_login_url], allow_other_host: true |
× |
|
UNCOV
6
|
end
|
× |
| 7 |
|
|
|
UNCOV
8
|
def cas |
× |
|
UNCOV
9
|
ticket = params[:ticket]
|
× |
|
UNCOV
10
|
uri = URI.parse(session[:cas_validation_url]) |
× |
|
UNCOV
11
|
token = "#{uri.query}#{ticket}"
|
× |
|
UNCOV
12
|
current_user.mediaflux_login(token, session) |
× |
|
UNCOV
13
|
redirect_to(session["original_path"] || dashboard_path)
|
× |
|
UNCOV
14
|
end
|
× |
|
UNCOV
15
|
end
|
× |