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

pulibrary / pdc_describe / 9dbcf7a4-1c56-4510-9614-74ad5a22cff6

31 Jul 2024 02:46PM UTC coverage: 1.08% (-95.1%) from 96.17%
9dbcf7a4-1c56-4510-9614-74ad5a22cff6

push

circleci

jrgriffiniii
wip

52 of 4814 relevant lines covered (1.08%)

0.01 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
2

3
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
×
4
  def cas
×
5
    @user = User.from_cas(request.env["omniauth.auth"])
×
6
    if @user.nil?
×
7
      redirect_to root_path
×
8
      flash[:notice] = "You are not authorized"
×
9
    else
×
10
      sign_in_and_redirect @user, event: :authentication # this will throw if @user is not activated
×
11
      if is_navigational_format?
×
12
        set_flash_message(:notice, :success, kind: "from Princeton Central Authentication Service")
×
13
      end
×
14
    end
×
15
  end
×
16
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

© 2025 Coveralls, Inc