Sha256: c22e5c9bdb513bd6418e178f1388ca1055d1a232753cb74816263fd0c12554e8
Contents?: true
Size: 656 Bytes
Versions: 3
Compression:
Stored size: 656 Bytes
Contents
require 'erb' module Onelogin::Saml class EntityDescription def initialize() url = "entity_descriptor.xml.erb" @template = File.read(File.join(File.dirname(__FILE__), url)) end 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 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby-saml-bekk-0.3.3 | lib/onelogin/saml/entity_descriptor.rb |
ruby-saml-bekk-0.3.2 | lib/onelogin/saml/entity_descriptor.rb |
ruby-saml-bekk-0.3.1 | lib/onelogin/saml/entity_descriptor.rb |