Class: Onelogin::Saml::EntityDescription
- Inherits:
-
Object
- Object
- Onelogin::Saml::EntityDescription
- Defined in:
- lib/onelogin/saml/entity_descriptor.rb
Instance Method Summary collapse
- #generate(values) ⇒ Object
-
#initialize ⇒ EntityDescription
constructor
A new instance of EntityDescription.
Constructor Details
#initialize ⇒ EntityDescription
Returns a new instance of EntityDescription.
5 6 7 8 |
# File 'lib/onelogin/saml/entity_descriptor.rb', line 5 def initialize() url = "entity_descriptor.xml.erb" @template = File.read(File.join(File.dirname(__FILE__), url)) end |
Instance Method Details
#generate(values) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/onelogin/saml/entity_descriptor.rb', line 10 def generate(values) entity_id = values["entity_id"] name_id_format = values["name_id_format"] assertion_consumer_service_location = values["assertion_consumer_service_location"] single_logout_service_location = values["single_logout_service_location"] single_logout_service_response_location = values["single_logout_service_response_location"] erb = ERB.new(@template) erb.result(binding) end |