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

benwbrum / fromthepage / 17387282326

01 Sep 2025 09:13PM UTC coverage: 64.405%. Remained the same
17387282326

push

github

web-flow
4857 - Require rubocop step in CI (#4858)

* 4857 - Require rubocop step in CI

* 4865 - Organize gemfiles

1790 of 3303 branches covered (54.19%)

Branch coverage included in aggregate %.

839 of 1497 new or added lines in 133 files covered. (56.05%)

43 existing lines in 29 files now uncovered.

7928 of 11786 relevant lines covered (67.27%)

103.82 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
class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
×
2
  #  protect_from_forgery with: :exception, except: [:saml]
3
  #  skip_before_action :verify_authenticity_token
4
  skip_forgery_protection
×
5
  def google_oauth2
×
6
      # You need to implement the method below in your model (e.g. app/models/user.rb)
7
      @user = User.from_omniauth(request.env['omniauth.auth'])
×
8

9
      if @user.persisted?
×
10
        flash[:notice] = I18n.t 'devise.omniauth_callbacks.success', kind: 'Google'
×
11
        sign_in_and_redirect @user, event: :authentication
×
12
      else
×
13
        session['devise.google_data'] = request.env['omniauth.auth'].except(:extra) # Removing extra as it can overflow some session stores
×
14
        redirect_to new_user_registration_url, alert: @user.errors.full_messages.join("\n")
×
15
      end
×
16
  end
×
17

18

19
  def saml
×
NEW
20
    @user = User.from_omniauth(request.env['omniauth.auth'])
×
21

22
    if @user.persisted?
×
NEW
23
      sign_in_and_redirect @user, event: :authentication # this will throw if @user is not activated
×
NEW
24
      set_flash_message(:notice, :success, kind: 'SAML') if is_navigational_format?
×
25
    else
×
NEW
26
      session['devise.saml_data'] = request.env['omniauth.auth']
×
27
      redirect_to new_user_registration_url, alert: @user.errors.full_messages.join("\n")
×
28
    end
×
29
  end
×
30

31
  def failure
×
32
    flash[:error] = t('authentication_failed')
×
33
    redirect_to new_user_registration_url
×
34
  end
×
35
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