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