Sha256: aafb427c2815670161b3a017b10e764ac74beed8ac9dc2fc8b7254286d1ef0a9

Contents?: true

Size: 608 Bytes

Versions: 49

Compression:

Stored size: 608 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, nil)
        end

        alias_method :find_by_entity_id, :find_by_metadata_location
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
libsaml-3.13.1 lib/saml/provider_stores/url.rb
libsaml-3.13.0 lib/saml/provider_stores/url.rb
libsaml-3.12.0 lib/saml/provider_stores/url.rb
libsaml-3.11.0 lib/saml/provider_stores/url.rb
libsaml-3.10.0 lib/saml/provider_stores/url.rb
libsaml-3.9.3 lib/saml/provider_stores/url.rb
libsaml-3.9.2 lib/saml/provider_stores/url.rb
libsaml-3.9.1 lib/saml/provider_stores/url.rb
libsaml-3.9.0 lib/saml/provider_stores/url.rb
libsaml-3.8.0 lib/saml/provider_stores/url.rb
libsaml-3.7.0 lib/saml/provider_stores/url.rb
libsaml-3.6.0 lib/saml/provider_stores/url.rb
libsaml-3.5.0 lib/saml/provider_stores/url.rb
libsaml-3.4.0 lib/saml/provider_stores/url.rb
libsaml-3.3.0 lib/saml/provider_stores/url.rb
libsaml-3.2.3 lib/saml/provider_stores/url.rb
libsaml-3.2.2 lib/saml/provider_stores/url.rb
libsaml-3.2.1 lib/saml/provider_stores/url.rb
libsaml-3.1.2 lib/saml/provider_stores/url.rb
libsaml-3.1.1 lib/saml/provider_stores/url.rb