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