Sha256: 3d883ee993af30a0b1d27a3aa9ee4181c17a411d5ce5dad95c78173078065dbe
Contents?: true
Size: 573 Bytes
Versions: 4
Compression:
Stored size: 573 Bytes
Contents
module DoorkeeperHub class OmniauthCallbacksController < Devise::OmniauthCallbacksController skip_before_action :verify_authenticity_token, :authenticate_doorkeeper!, only: :saml def saml @user = DoorkeeperHub .user_model .constantize .from_omniauth(request.env["omniauth.auth"]) if @user.present? && @user.persisted? sign_in_and_redirect @user, event: :authentication else raise ActionController::RoutingError.new('Not Found') end end end end
Version data entries
4 entries across 4 versions & 1 rubygems