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

pulibrary / tigerdata-app / 7ab9089e-7ed5-4c90-9855-9749cfbe2d27

13 Nov 2025 02:38PM UTC coverage: 87.508% (-0.9%) from 88.421%
7ab9089e-7ed5-4c90-9855-9749cfbe2d27

push

circleci

web-flow
Show the status of our java plugin (#2175)

Ref #2166

<img width="1262" height="486" alt="Screenshot 2025-11-10 at 11 22
04 AM"
src="https://github.com/user-attachments/assets/d9132f9a-f0e1-4e15-ac53-3336a48f77f4"
/>

---------

Co-authored-by: Hector Correa <hector_correa@princeton.edu>

5 of 7 new or added lines in 1 file covered. (71.43%)

557 existing lines in 36 files now uncovered.

2760 of 3154 relevant lines covered (87.51%)

362.41 hits per line

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

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

UNCOV
7
    set_cas_session
3✔
8

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

UNCOV
22
  private
1✔
23

UNCOV
24
    def set_cas_session
1✔
UNCOV
25
      strategy = request.env["omniauth.strategy"]
3✔
UNCOV
26
      if strategy.present?
3✔
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