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

diowa / icare / 10678286731

03 Sep 2024 07:15AM UTC coverage: 96.914%. First build
10678286731

Pull #1798

github

web-flow
Merge 14491c995 into 46e9f5eda
Pull Request #1798: Update dependencies

471 of 486 relevant lines covered (96.91%)

84.96 hits per line

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

92.31
/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 auth0
1✔
6
      @user = User.from_omniauth(auth_hash)
46✔
7

8
      if @user.persisted?
46✔
9
        @user.update_info_from_auth_hash! auth_hash
46✔
10
        sign_in_and_redirect @user, event: :authentication
46✔
11
      else
12
        redirect_to root_path, flash: { error: t('flash.sessions.error.create') }
×
13
      end
14
    end
15

16
    protected
1✔
17

18
    def after_omniauth_failure_path_for(_scope)
1✔
19
      root_path
1✔
20
    end
21

22
    def auth_hash
1✔
23
      request.env['omniauth.auth']
92✔
24
    end
25
  end
26
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