Class: Saml::Kit::Builders::AuthenticationRequest
- Inherits:
-
Object
- Object
- Saml::Kit::Builders::AuthenticationRequest
- Includes:
- Templatable
- Defined in:
- lib/saml/kit/builders/authentication_request.rb
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.
-
#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.
Attributes included from Templatable
Instance Method Summary collapse
-
#acs_url ⇒ Object
deprecated
Deprecated.
Use #assertion_consumer_service_url instead of this method.
-
#acs_url=(value) ⇒ Object
deprecated
Deprecated.
Use #assertion_consumer_service_url= instead of this method.
- #build ⇒ Object
-
#initialize(configuration: Saml::Kit.configuration) ⇒ AuthenticationRequest
constructor
A new instance of AuthenticationRequest.
Methods included from Templatable
#encrypt?, #encryption_for, #render, #sign=, #sign?, #signature_for, #signatures, #to_xml
Constructor Details
#initialize(configuration: Saml::Kit.configuration) ⇒ AuthenticationRequest
Returns a new instance of AuthenticationRequest.
10 11 12 13 14 15 16 17 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 10 def initialize(configuration: Saml::Kit.configuration) @configuration = configuration @id = Id.generate @issuer = configuration.issuer @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.
6 7 8 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 6 def assertion_consumer_service_url @assertion_consumer_service_url end |
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
8 9 10 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 8 def configuration @configuration end |
#destination ⇒ Object
Returns the value of attribute destination.
6 7 8 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 6 def destination @destination end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 6 def id @id end |
#issuer ⇒ Object
Returns the value of attribute issuer.
6 7 8 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 6 def issuer @issuer end |
#name_id_format ⇒ Object
Returns the value of attribute name_id_format.
6 7 8 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 6 def name_id_format @name_id_format end |
#now ⇒ Object
Returns the value of attribute now.
6 7 8 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 6 def now @now end |
#version ⇒ Object
Returns the value of attribute version.
7 8 9 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 7 def version @version end |
Instance Method Details
#acs_url ⇒ Object
Use #assertion_consumer_service_url instead of this method.
20 21 22 23 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 20 def acs_url Saml::Kit.deprecate("acs_url is deprecated. Use assertion_consumer_service_url instead") self.assertion_consumer_service_url end |
#acs_url=(value) ⇒ Object
Use #assertion_consumer_service_url= instead of this method.
26 27 28 29 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 26 def acs_url=(value) Saml::Kit.deprecate("acs_url= is deprecated. Use assertion_consumer_service_url= instead") self.assertion_consumer_service_url = value end |
#build ⇒ Object
31 32 33 |
# File 'lib/saml/kit/builders/authentication_request.rb', line 31 def build Saml::Kit::AuthenticationRequest.new(to_xml) end |