Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface Duende.​IdentityServer.​Saml.​Serialization.​ISamlXmlReader
Assembly: Duende.IdentityServer
Reader for Saml classes from Xml
Properties
System.​Collections.​Generic.​IEnumerable<​string>
AllowedAlgorithms
Allowed hash algorithms if validating signatures. Values should be e.g.
"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" which is compared to
the algorithm identifier Url.
System.​Collections.​Generic.​IEnumerable<​Xml.​SigningKey>
TrustedSigningKeys
Signing keys to trust when validating signatures of the metadata. In addition
to these, the signing keys configured for a known issuer are considered. This
property is mostly useful for validation of signed metadata.
System.​Func<​string, System.​Threading.​CancellationToken, System.​Threading.​Tasks.​Task<​Saml2Entity>>
EntityResolver
Called when information about a Saml entity is needed, e.g. to get the signing
keys configured for an entity.
Methods
System.​Threading.​Tasks.​Task<​Metadata.​EntityDescriptor>
ReadEntityDescriptorAsync​(Xml.​XmlTraverser source,
System.​Threading.​CancellationToken ct)
Read an Entity Descriptor
Returns EntityDescriptor
source
Xml Traverser to read from
ct
Cancellation token
System.​Threading.​Tasks.​Task<​Metadata.​EntityDescriptor>
ReadEntityDescriptorAsync​(Xml.​XmlTraverser source,
System.​Action<​Xml.​ReadErrorInspectorContext<​Metadata.​EntityDescriptor>> errorInspector,
System.​Threading.​CancellationToken ct)
Read an Entity Descriptor
Returns EntityDescriptor
source
Xml Traverser to read from
errorInspector
Callback that can inspect and alter errors before throwing
ct
Cancellation token
System.​Threading.​Tasks.​Task<​Samlp.​Response>
ReadResponseAsync​(Xml.​XmlTraverser source,
System.​Threading.​CancellationToken ct)
Read a Saml response
Returns SamlResponse
source
Xml Traverser to read from
ct
Cancellation token
System.​Threading.​Tasks.​Task<​Samlp.​Response>
ReadResponseAsync​(Xml.​XmlTraverser source,
System.​Action<​Xml.​ReadErrorInspectorContext<​Samlp.​Response>> errorInspector,
System.​Threading.​CancellationToken ct)
Read a Saml response
Returns SamlResponse
source
Xml Traverser to read from
errorInspector
Callback that can inspect and alter errors before throwing
ct
Cancellation token
System.​Threading.​Tasks.​Task<​Assertion>
ReadAssertionAsync​(Xml.​XmlTraverser source,
System.​Threading.​CancellationToken ct)
Read an <see cref="T:Duende.IdentityServer.Saml.Assertion" />
Returns <see cref="T:Duende.IdentityServer.Saml.Assertion" />
source
Xml Traverser to read from
ct
Cancellation token
System.​Threading.​Tasks.​Task<​Assertion>
ReadAssertionAsync​(Xml.​XmlTraverser source,
System.​Action<​Xml.​ReadErrorInspectorContext<​Assertion>> errorInspector,
System.​Threading.​CancellationToken ct)
Read an <see cref="T:Duende.IdentityServer.Saml.Assertion" />
Returns <see cref="T:Duende.IdentityServer.Saml.Assertion" />
source
Xml Traverser to read from
errorInspector
Callback that can inspect and alter errors before throwing
ct
Cancellation token
System.​Threading.​Tasks.​Task<​Samlp.​AuthnRequest>
ReadAuthnRequestAsync​(Xml.​XmlTraverser source,
System.​Action?<​Xml.​ReadErrorInspectorContext<​Samlp.​AuthnRequest>> errorInspector,
System.​Threading.​CancellationToken ct)
Read an <see cref="T:Duende.IdentityServer.Saml.Samlp.AuthnRequest" />
Returns <see cref="T:Duende.IdentityServer.Saml.Samlp.AuthnRequest" />
source
Xml Traverser to read from
errorInspector
Optional callback that can inspect and alter errors before throwing
ct
Cancellation token
System.​Threading.​Tasks.​Task<​Samlp.​LogoutRequest>
ReadLogoutRequestAsync​(Xml.​XmlTraverser source,
System.​Action?<​Xml.​ReadErrorInspectorContext<​Samlp.​LogoutRequest>> errorInspector,
System.​Threading.​CancellationToken ct)
Read a <see cref="T:Duende.IdentityServer.Saml.Samlp.LogoutRequest" />
Returns <see cref="T:Duende.IdentityServer.Saml.Samlp.LogoutRequest" />
source
Xml Traverser to read from
errorInspector
Optional callback that can inspect and alter errors before throwing
ct
Cancellation token
System.​Threading.​Tasks.​Task<​Samlp.​LogoutResponse>
ReadLogoutResponseAsync​(Xml.​XmlTraverser source,
System.​Action?<​Xml.​ReadErrorInspectorContext<​Samlp.​LogoutResponse>> errorInspector,
System.​Threading.​CancellationToken ct)
Read a <see cref="T:Duende.IdentityServer.Saml.Samlp.LogoutResponse" />
Returns <see cref="T:Duende.IdentityServer.Saml.Samlp.LogoutResponse" />
source
Xml Traverser to read from
errorInspector
Optional callback that can inspect and alter errors before throwing
ct
Cancellation token