Class: SAML2::LogoutResponse
- Inherits:
-
StatusResponse
- Object
- Base
- Message
- StatusResponse
- SAML2::LogoutResponse
- Defined in:
- lib/saml2/logout_response.rb
Instance Attribute Summary
Attributes inherited from StatusResponse
Attributes inherited from Message
#destination, #id, #issue_instant, #issuer
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from StatusResponse
Methods inherited from Message
#from_xml, from_xml, inherited, #initialize, parse, #valid_schema?
Methods inherited from Base
from_xml, #from_xml, load_object_array, load_string_array, lookup_qname, #to_s, #to_xml
Constructor Details
This class inherits a constructor from SAML2::StatusResponse
Class Method Details
.respond_to(logout_request, sso, issuer, status_code = Status::SUCCESS) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/saml2/logout_response.rb', line 5 def self.respond_to(logout_request, sso, issuer, status_code = Status::SUCCESS) logout_response = new logout_response.issuer = issuer logout_response.destination = sso.single_logout_services.first.location logout_response.in_response_to = logout_request.id logout_response.status.code = status_code logout_response end |
Instance Method Details
#build(builder) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/saml2/logout_response.rb', line 14 def build(builder) builder['samlp'].LogoutResponse( 'xmlns:samlp' => Namespaces::SAMLP, 'xmlns:saml' => Namespaces::SAML ) do |logout_response| super(logout_response) end end |