Class: SamlIdp::IdpController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- SamlIdp::IdpController
show all
- Includes:
- Controller
- Defined in:
- app/controllers/saml_idp/idp_controller.rb
Instance Attribute Summary
Attributes included from Controller
#algorithm, #saml_acs_url, #secret_key, #x509_certificate
Instance Method Summary
collapse
Methods included from Controller
#algorithm_name
Instance Method Details
#create ⇒ Object
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# File 'app/controllers/saml_idp/idp_controller.rb', line 19
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
|
#new ⇒ Object
15
16
17
|
# File 'app/controllers/saml_idp/idp_controller.rb', line 15
def new
render :template => "saml_idp/idp/new"
end
|