Sha256: 00d4af6b56113ae1b9e3a0d5ba9bd3a75a529044f929735ce76baadffa5c36a6
Contents?: true
Size: 571 Bytes
Versions: 3
Compression:
Stored size: 571 Bytes
Contents
module DoorkeeperHub class OmniauthCallbacksController < Devise::OmniauthCallbacksController skip_before_action :verify_authenticity_token, :check_login!, :check_d_token, only: :saml def saml @user = DoorkeeperHub .user_model .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
3 entries across 3 versions & 1 rubygems