Exemplo n.º 1
0
        /// <summary>
        /// Retrieve metadata of the identity provider with the given id.
        /// </summary>
        /// <returns>null if the service provider is not recognized.</returns>
        public static Saml20MetadataDocument GetServiceProviderMetadata(string id)
        {
            if (MetadataDocs.ContainsKey(id))
            {
                return(MetadataDocs[id]);
            }

            return(null);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Removes the metadata of the service provider with the given id.
 /// </summary>
 public static void RemoveServiceProvider(string entityID)
 {
     MetadataDocs.Remove(entityID);
     DeleteSPMetadataFile(entityID);
 }