Sha256: 414a606cf051b37140526e93e69551dbf131653fd14be9d62a9dc5819df7e815
Contents?: true
Size: 928 Bytes
Versions: 4
Compression:
Stored size: 928 Bytes
Contents
# encoding: utf-8 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
4 entries across 4 versions & 1 rubygems