• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / tigerdata-app / 611084c9-342d-4394-a4ed-99af3ac79af4

03 Dec 2025 07:02PM UTC coverage: 71.819% (+0.5%) from 71.313%
611084c9-342d-4394-a4ed-99af3ac79af4

push

circleci

web-flow
Allow requested by or approved by information to be empty (#2267)

There are no tests yet, but the detail page may not load for you (like
it did not load for me)

0 of 49 new or added lines in 3 files covered. (0.0%)

997 existing lines in 42 files now uncovered.

2444 of 3403 relevant lines covered (71.82%)

336.49 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/app/controllers/users/omniauth_callbacks_controller.rb
1
# frozen_string_literal: true
UNCOV
2
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
×
UNCOV
3
  def cas
×
UNCOV
4
    access_token = request.env["omniauth.auth"]
×
UNCOV
5
    @user = User.from_cas(access_token)
×
6

UNCOV
7
    set_cas_session
×
8

UNCOV
9
    if @user.nil? && access_token&.provider == "cas"
×
UNCOV
10
      Rails.logger.warn "User from CAS with netid #{access_token&.uid} was not found. Provider: cas"
×
UNCOV
11
      redirect_to help_path
×
UNCOV
12
      flash.notice = "You can not be signed in at this time."
×
UNCOV
13
    elsif @user.nil?
×
UNCOV
14
      Rails.logger.warn "User from CAS with netid #{access_token&.uid} was not found. Provider: #{access_token&.provider}"
×
UNCOV
15
      redirect_to root_path
×
UNCOV
16
      flash.alert = "You are not a recognized CAS user."
×
UNCOV
17
    else
×
UNCOV
18
      sign_in_and_redirect @user, event: :authentication # this will throw if @user is not activated
×
UNCOV
19
    end
×
UNCOV
20
  end
×
21

UNCOV
22
  private
×
23

UNCOV
24
    def set_cas_session
×
UNCOV
25
      strategy = request.env["omniauth.strategy"]
×
UNCOV
26
      if strategy.present?
×
27
        service_url = strategy.append_params(mediaflux_extra_url, { url: request.referer })
×
28
        session[:cas_login_url] = strategy.login_url(service_url)
×
29
        session[:cas_validation_url] = strategy.service_validate_url(service_url, "")
×
UNCOV
30
      end
×
UNCOV
31
    end
×
UNCOV
32
end
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc