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