Class: SAML2::LogoutRequest
- Defined in:
- lib/saml2/logout_request.rb
Instance Attribute Summary collapse
-
#name_id ⇒ Object
Returns the value of attribute name_id.
-
#session_index ⇒ Object
Returns the value of attribute session_index.
Attributes inherited from Message
Attributes inherited from Base
Class Method Summary collapse
Methods inherited from Message
#from_xml, from_xml, #id, inherited, #initialize, #issue_instant, parse, #sign, #valid_schema?, #validate_signature
Methods included from Signable
#sign, #signature, #signed?, #signing_key, #valid_signature?, #validate_signature
Methods inherited from Base
from_xml, #from_xml, #initialize, #inspect, load_object_array, load_string_array, lookup_qname, #to_s, #to_xml
Constructor Details
This class inherits a constructor from SAML2::Message
Instance Attribute Details
#name_id ⇒ Object
Returns the value of attribute name_id.
6 7 8 |
# File 'lib/saml2/logout_request.rb', line 6 def name_id @name_id end |
#session_index ⇒ Object
Returns the value of attribute session_index.
6 7 8 |
# File 'lib/saml2/logout_request.rb', line 6 def session_index @session_index end |
Class Method Details
.initiate(sso, issuer, name_id, session_index = nil) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/saml2/logout_request.rb', line 8 def self.initiate(sso, issuer, name_id, session_index = nil) logout_request = new logout_request.issuer = issuer logout_request.destination = sso.single_logout_services.first.location logout_request.name_id = name_id logout_request.session_index = session_index logout_request end |