Commit 4d660b2
2017-11-01 22:45:18
1 parent
bdbfd33
Changed files (2)
saml-kit
saml-kit/lib/saml/kit/identity_provider_metadata.rb
@@ -27,8 +27,9 @@ module Saml
class Builder
attr_accessor :id, :organization_name, :organization_url, :contact_email, :entity_id, :single_sign_on_location, :single_logout_location, :attributes
- def initialize
+ def initialize(configuration = Saml::Kit.configuration)
@id = SecureRandom.uuid
+ @entity_id = configuration.issuer
@attributes = []
end
saml-kit/lib/saml/kit/service_provider_metadata.rb
@@ -22,6 +22,7 @@ module Saml
def initialize(configuration = Saml::Kit.configuration)
@id = SecureRandom.uuid
@configuration = configuration
+ @entity_id = configuration.issuer
@acs_urls = []
@logout_urls = []
@name_id_formats = [Namespaces::Formats::NameId::PERSISTENT]