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.2.0 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.1.5 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.1.4 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.1.3 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.1.2 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.1.1 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.1.0 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-3.0.0 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-2.16.3 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-2.16.2 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-2.16.1 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-2.16.0 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-2.15.2 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-2.15.1 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-2.15.0 lib/generators/templates/omniauth_callbacks_controller.rb
strongmind-platform-sdk-2.14.0 lib/generators/templates/omniauth_callbacks_controller.rb