Class: Saml::Kit::Builders::AuthenticationRequest
- Inherits:
-
Object
- Object
- Saml::Kit::Builders::AuthenticationRequest
- Includes:
- XmlTemplatable
- Defined in:
- lib/saml/kit/builders/authentication_request.rb
Overview
Constant Summary
Constants included from XmlTemplatable
Instance Attribute Summary collapse
-
#assertion_consumer_service_url ⇒ Object
Returns the value of attribute assertion_consumer_service_url.
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#force_authn ⇒ Object
Returns the value of attribute force_authn.
-
#id ⇒ Object
Returns the value of attribute id.
-
#issuer ⇒ Object
Returns the value of attribute issuer.
-
#name_id_format ⇒ Object
Returns the value of attribute name_id_format.
-
#now ⇒ Object
Returns the value of attribute now.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(configuration: Saml::Kit.configuration) ⇒ AuthenticationRequest
constructor
A new instance of AuthenticationRequest.
Methods included from XmlTemplatable
#digest_method, #sign?, #signature_method, #signing_key_pair, #template_name, #template_path
Constructor Details
#initialize(configuration: Saml::Kit.configuration) ⇒ AuthenticationRequest
Returns a new instance of AuthenticationRequest.
16 17 18 19 20 21 22 23 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 16 def initialize(configuration: Saml::Kit.configuration) @configuration = configuration @id = ::Xml::Kit::Id.generate @issuer = configuration.entity_id @name_id_format = Namespaces::PERSISTENT @now = Time.now.utc @version = '2.0' end |
Instance Attribute Details
#assertion_consumer_service_url ⇒ Object
Returns the value of attribute assertion_consumer_service_url.
10 11 12 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 10 def assertion_consumer_service_url @assertion_consumer_service_url end |
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
14 15 16 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 14 def configuration @configuration end |
#destination ⇒ Object
Returns the value of attribute destination.
11 12 13 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 11 def destination @destination end |
#force_authn ⇒ Object
Returns the value of attribute force_authn.
13 14 15 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 13 def force_authn @force_authn end |
#id ⇒ Object
Returns the value of attribute id.
10 11 12 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 10 def id @id end |
#issuer ⇒ Object
Returns the value of attribute issuer.
10 11 12 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 10 def issuer @issuer end |
#name_id_format ⇒ Object
Returns the value of attribute name_id_format.
11 12 13 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 11 def name_id_format @name_id_format end |
#now ⇒ Object
Returns the value of attribute now.
10 11 12 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 10 def now @now end |
#version ⇒ Object
Returns the value of attribute version.
12 13 14 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 12 def version @version end |
Instance Method Details
#build ⇒ Object
25 26 27 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 25 def build Saml::Kit::AuthenticationRequest.new(to_xml) end |