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

tulibraries / tul_cob / 9e9141fa-aaa2-4f05-9053-18fa952e0445

03 Oct 2023 06:29PM UTC coverage: 84.787% (+0.03%) from 84.758%
9e9141fa-aaa2-4f05-9053-18fa952e0445

push

circleci

web-flow
Bump dalli from 3.2.5 to 3.2.6 (#3973)

Bumps [dalli](https://github.com/petergoldstein/dalli) from 3.2.5 to 3.2.6.
- [Changelog](https://github.com/petergoldstein/dalli/blob/main/CHANGELOG.md)
- [Commits](https://github.com/petergoldstein/dalli/commits)

---
updated-dependencies:
- dependency-name: dalli
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

2965 of 3497 relevant lines covered (84.79%)

55.14 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