Class SamlMetadataDocument
A SAML metadata document.
public abstract class SamlMetadataDocument : DeputyBase
- Inheritance
-
SamlMetadataDocument
Examples
var provider = new SamlProvider(this, "Provider", new SamlProviderProps {
MetadataDocument = SamlMetadataDocument.FromFile("/path/to/saml-metadata-document.xml")
});
var principal = new SamlPrincipal(provider, new Dictionary<string, object> {
{ "StringEquals", new Dictionary<string, string> {
{ "SAML:iss", "issuer" }
} }
});
Remarks
ExampleMetadata: infused
Constructors
SamlMetadataDocument()
protected SamlMetadataDocument()
Properties
Xml
The XML content of the metadata document.
public abstract string Xml { get; }
Property Value
Methods
FromFile(string)
Create a SAML metadata document from a XML file.
public static SamlMetadataDocument FromFile(string path)
Parameters
path
string
Returns
FromXml(string)
Create a SAML metadata document from a XML string.
public static SamlMetadataDocument FromXml(string xml)
Parameters
xml
string