Sha256: f9d7afaedb6266f2638949640acf9fd6d16a9ee4af74d9239d667798f4cc2504

Contents?: true

Size: 603 Bytes

Versions: 60

Compression:

Stored size: 603 Bytes

Contents

module Saml
  module ProviderStores
    class Url
      attr_accessor :providers
      class << self
        def find_by_metadata_location(entity_id)
          metadata          = Saml::Util.download_metadata_xml(entity_id)
          entity_descriptor = Saml::Elements::EntityDescriptor.parse(metadata, single: true)
          type              = entity_descriptor.sp_sso_descriptor.present? ? "service_provider" : "identity_provider"

          BasicProvider.new(entity_descriptor, nil, type)
        end

        alias_method :find_by_entity_id, :find_by_metadata_location
      end
    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
libsaml-2.19.10 lib/saml/provider_stores/url.rb
libsaml-2.19.9 lib/saml/provider_stores/url.rb
libsaml-2.19.8 lib/saml/provider_stores/url.rb
libsaml-2.19.7 lib/saml/provider_stores/url.rb
libsaml-2.19.5 lib/saml/provider_stores/url.rb
libsaml-2.19.6 lib/saml/provider_stores/url.rb
libsaml-2.19.4 lib/saml/provider_stores/url.rb
libsaml-2.19.3 lib/saml/provider_stores/url.rb
libsaml-2.19.2 lib/saml/provider_stores/url.rb
libsaml-2.19.1 lib/saml/provider_stores/url.rb
libsaml-2.18.1 lib/saml/provider_stores/url.rb
libsaml-2.18.0 lib/saml/provider_stores/url.rb
libsaml-2.17.0 lib/saml/provider_stores/url.rb
libsaml-2.16.0 lib/saml/provider_stores/url.rb
libsaml-2.15.8 lib/saml/provider_stores/url.rb
libsaml-2.15.7 lib/saml/provider_stores/url.rb
libsaml-2.15.6 lib/saml/provider_stores/url.rb
libsaml-2.15.5 lib/saml/provider_stores/url.rb
libsaml-2.15.4 lib/saml/provider_stores/url.rb
libsaml-2.15.3 lib/saml/provider_stores/url.rb