Sha256: 379ab4e5c57f36803607fbfec55051c11d9316888a48794ad4ff7f6da56f5b60
Contents?: true
Size: 910 Bytes
Versions: 3
Compression:
Stored size: 910 Bytes
Contents
module SamlIdp class IdpController < ActionController::Base include SamlIdp::Controller unloadable protect_from_forgery before_filter :validate_saml_request def new render :template => "saml_idp/idp/new" end def create unless params[:email].blank? && params[:password].blank? person = idp_authenticate(params[:email], params[:password]) if person.nil? @saml_idp_fail_msg = "Incorrect email or password." else @saml_response = idp_make_saml_response(person) render :template => "saml_idp/idp/saml_post", :layout => false return end end render :template => "saml_idp/idp/new" end protected def idp_authenticate(email, password) raise "Not implemented" end def idp_make_saml_response(person) raise "Not implemented" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby-saml-idp-0.2.5 | app/controllers/saml_idp/idp_controller.rb |
ruby-saml-idp-0.2 | app/controllers/saml_idp/idp_controller.rb |
ruby-saml-idp-0.1 | app/controllers/saml_idp/idp_controller.rb |