Class: Saml::ProviderStores::Url

Inherits:
Object
  • Object
show all
Defined in:
lib/saml/provider_stores/url.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#providersObject

Returns the value of attribute providers.



4
5
6
# File 'lib/saml/provider_stores/url.rb', line 4

def providers
  @providers
end

Class Method Details

.find_by_metadata_location(entity_id) ⇒ Object Also known as: find_by_entity_id



6
7
8
9
10
11
12
# File 'lib/saml/provider_stores/url.rb', line 6

def (entity_id)
            = Saml::Util.(entity_id)
  entity_descriptor = Saml::Elements::EntityDescriptor.parse(, single: true)
  type              = entity_descriptor.sp_sso_descriptor.present? ? "service_provider" : "identity_provider"

  BasicProvider.new(entity_descriptor, nil, type)
end