Class SamlResourceResolutionResult
- Namespace
- Fdyay.IdentityServer.Saml.Idp
- Assembly
- Fdyay.IdentityServer.Saml.dll
The claim types a service provider may be issued, or why it may be issued none. Duende's.
public sealed class SamlResourceResolutionResult
- Inheritance
-
SamlResourceResolutionResult
- Inherited Members
Properties
ClaimTypes
The claim types the profile service is asked for.
public IReadOnlyList<string> ClaimTypes { get; }
Property Value
Error
Why it failed; shown on the error page.
public string? Error { get; }
Property Value
Succeeded
Whether the claim types were resolved; when false, Error says why.
public bool Succeeded { get; }
Property Value
ValidatedResources
The identity resources the provider's allowed scopes named.
public ResourceValidationResult? ValidatedResources { get; }
Property Value
Methods
Failure(string)
A resolution that failed.
public static SamlResourceResolutionResult Failure(string error)
Parameters
errorstringWhy, shown on the error page.
Returns
- SamlResourceResolutionResult
A result with Succeeded false and no claim types.
Exceptions
- ArgumentException
erroris null or empty.
Success(IReadOnlyList<string>, ResourceValidationResult)
A resolution that succeeded.
public static SamlResourceResolutionResult Success(IReadOnlyList<string> claimTypes, ResourceValidationResult validatedResources)
Parameters
claimTypesIReadOnlyList<string>The claim types the profile service is asked for.
validatedResourcesResourceValidationResultThe identity resources the provider's allowed scopes named.
Returns
- SamlResourceResolutionResult
A result with Succeeded true.
Exceptions
- ArgumentNullException
Either argument is null.