Sha256: 31809091dd96e98be2113144972a49239ef9854b546ea511a03c7464b5956e60

Contents?: true

Size: 529 Bytes

Versions: 36

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true

module Users
  class OmniauthCallbacksController < Devise::OmniauthCallbacksController

    def strongmind
      auth = request.env['omniauth.auth']
      @user = User.from_omniauth(auth)
      session[:full_name] = "#{auth.extra.raw_info['http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname']} #{auth.extra.raw_info['http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname']}"
      sign_in_and_redirect @user
    end

    def failure
      redirect_to root_url
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
strongmind-platform-sdk-3.10.3 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.10.2 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.10.1 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.10.0 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.9.5 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.9.4 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.9.3 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.9.2 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.9.1 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.9.0 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.8.0 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.7.1 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.7.0 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.6.2 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.6.1 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.6.0 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.5.1 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.5.0 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.4.0 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.3.0 lib/generators/templates/omniauth_callbacks_controller.rb