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

tulibraries / tul_cob / c74075ad-f3f6-4ca0-8717-4e89a3efd2fe

06 Oct 2023 01:43PM UTC coverage: 84.791% (+0.03%) from 84.763%
c74075ad-f3f6-4ca0-8717-4e89a3efd2fe

push

circleci

web-flow
Bump cob_index from `3222fa6` to `294cb9c` (#3990)

Bumps [cob_index](https://github.com/tulibraries/cob_index) from `3222fa6` to `294cb9c`.
- [Release notes](https://github.com/tulibraries/cob_index/releases)
- [Commits](https://github.com/tulibraries/cob_index/compare/3222fa6cd...294cb9cee)

---
updated-dependencies:
- dependency-name: cob_index
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

2966 of 3498 relevant lines covered (84.79%)

55.17 hits per line

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

80.0
/app/controllers/users/omniauth_callbacks_controller.rb
1
# frozen_string_literal: true
2

3
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
1✔
4
  protect_from_forgery with: :exception, except: :saml
1✔
5
  skip_before_action :verify_authenticity_token, only: [:alma, :saml]
1✔
6

7
  def alma
1✔
8
    # You need to implement the method below in your model (e.g. app/models/user.rb)
9
    @user = User.from_omniauth(request.env["omniauth.auth"])
×
10
    set_flash_message(:success, :success, kind: "Alma") if is_navigational_format?
×
11
    sign_in_and_redirect @user, event: :authentication #this will throw if @user is not activated
×
12
  end
13

14
  def saml
1✔
15
    auth = request.env["omniauth.auth"]
3✔
16
    omniauth_params = request.env["omniauth.params"]
3✔
17

18
    auth.uid = auth.extra.raw_info["urn:oid:2.16.840.1.113730.3.1.3"]
3✔
19
    @user = User.from_omniauth(auth)
3✔
20
    sign_in(:user, @user)
3✔
21

22
    session[:alma_auth_type] = "sso"
3✔
23
    session[:alma_sso_user] = @user.uid
3✔
24
    session[:alma_sso_token] = SecureRandom.hex(10)
3✔
25
    set_flash_message(:success, :success, kind: "Temple Single Sign On") if is_navigational_format?
3✔
26
    redirect_to omniauth_params["target"] || helpers.users_account_path
3✔
27
  end
28

29
  def failure
1✔
30
    redirect_to root_path
×
31
  end
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