circleci
0 of 46 new or added lines in 2 files covered. (0.0%)
4806 existing lines in 74 files now uncovered.65 of 5065 relevant lines covered (1.28%)
0.01 hits per line
| 1 |
# frozen_string_literal: true
|
|
| 2 |
|
|
|
UNCOV
3
|
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController |
× |
|
UNCOV
4
|
def cas |
× |
|
UNCOV
5
|
@user = User.from_cas(request.env["omniauth.auth"]) |
× |
|
UNCOV
6
|
if @user.nil? |
× |
|
UNCOV
7
|
redirect_to root_path |
× |
|
UNCOV
8
|
flash[:notice] = "You are not authorized" |
× |
|
UNCOV
9
|
else
|
× |
|
UNCOV
10
|
sign_in_and_redirect @user, event: :authentication # this will throw if @user is not activated |
× |
|
UNCOV
11
|
if is_navigational_format?
|
× |
|
UNCOV
12
|
set_flash_message(:notice, :success, kind: "from Princeton Central Authentication Service") |
× |
|
UNCOV
13
|
end
|
× |
|
UNCOV
14
|
end
|
× |
|
UNCOV
15
|
end
|
× |
|
UNCOV
16
|
end
|
× |