Commit bf19026
Changed files (2)
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
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]