Class: Spid::Metadata

Inherits:
Object
  • Object
show all
Defined in:
lib/spid/metadata.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMetadata

Returns a new instance of Metadata.



7
8
9
# File 'lib/spid/metadata.rb', line 7

def initialize
  @sp_metadata = Spid::Saml2::SPMetadata.new(settings: settings)
end

Instance Attribute Details

#sp_metadataObject (readonly)

Returns the value of attribute sp_metadata.



5
6
7
# File 'lib/spid/metadata.rb', line 5

def 
  @sp_metadata
end

Instance Method Details

#service_providerObject



22
23
24
# File 'lib/spid/metadata.rb', line 22

def service_provider
  @service_provider ||= Spid.configuration.service_provider
end

#settingsObject



11
12
13
14
15
16
# File 'lib/spid/metadata.rb', line 11

def settings
  @settings ||= Spid::Saml2::Settings.new(
    service_provider: service_provider,
    identity_provider: nil
  )
end

#to_xmlObject



18
19
20
# File 'lib/spid/metadata.rb', line 18

def to_xml
  .to_saml
end