Sha256: 2bd96fa2ec20c7df81aa2e38e03dc555edf148ca6ab83e0d7a4ba90afda40fca
Contents?: true
Size: 464 Bytes
Versions: 5
Compression:
Stored size: 464 Bytes
Contents
module RailsSso class SessionsController < RailsSso.config.application_controller.constantize skip_before_action :authenticate_user!, only: [:create] def create sign_in_with_access_token!(auth_hash.credentials) redirect_to session.delete(:rails_sso_return_path) || root_path end def destroy sign_out! redirect_to root_path end protected def auth_hash request.env['omniauth.auth'] end end end
Version data entries
5 entries across 5 versions & 1 rubygems