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

pulibrary / orangelight / e37798a3-1e41-4888-b59a-d239d1cb14a6

05 May 2026 12:18AM UTC coverage: 83.748% (-11.7%) from 95.406%
e37798a3-1e41-4888-b59a-d239d1cb14a6

push

circleci

web-flow
Bump axe-core-rspec from 4.11.2 to 4.11.3 (#5848)

Bumps [axe-core-rspec](https://github.com/dequelabs/axe-core-gems) from 4.11.2 to 4.11.3.
- [Release notes](https://github.com/dequelabs/axe-core-gems/releases)
- [Changelog](https://github.com/dequelabs/axe-core-gems/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/dequelabs/axe-core-gems/compare/v4.11.2...v4.11.3)

---
updated-dependencies:
- dependency-name: axe-core-rspec
  dependency-version: 4.11.3
  dependency-type: direct:development
  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>

5560 of 6639 relevant lines covered (83.75%)

82.08 hits per line

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

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

3
module Users
1✔
4
  class OmniauthCallbacksController < Devise::OmniauthCallbacksController
1✔
5
    def cas
1✔
6
      @user = User.from_cas access_token_in_request_params
1✔
7

8
      sign_in_and_redirect @user, event: :authentication # this will throw if @user is not activated
1✔
9
      if is_navigational_format?
1✔
10
        set_flash_message(:notice, :success, kind: 'from Princeton Central Authentication '\
1✔
11
                                                   'Service')
12
      end
13
    end
14

15
    def alma
1✔
16
      if Alma::User.authenticate(user_id: ERB::Util.url_encode(alma_params[:username]), password: alma_params[:password])
×
17
        @user ||= User.from_alma(access_token_in_request_params)
×
18
        @user.save
×
19
        sign_in_and_redirect @user, event: :authentication # this will throw if @user not activated
×
20
        set_flash_message(:notice, :success, kind: 'with alma account') if is_navigational_format?
×
21
      else
22
        set_flash_message(:error, :failure,
×
23
          reason: 'username or password did not match an alma account')
24
        redirect_to user_session_path(origin: omniauth_origin)
×
25
      end
26
    end
27

28
    private
1✔
29

30
      def omniauth_origin
1✔
31
        request.env['omniauth.origin']
×
32
      end
33

34
      # Accesses the access token passed within the request headers
35
      # @return [OmniAuth::AuthHash,nil] the access token
36
      def access_token_in_request_params
1✔
37
        request.env['omniauth.auth']
1✔
38
      end
39

40
      def alma_params
1✔
41
        params.permit(:username, :password)
×
42
      end
43
  end
44
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