Class ApiSecretValidationResult
- Namespace
- Fdyay.IdentityServer.Validation
- Assembly
- Fdyay.IdentityServer.Core.dll
The outcome of authenticating an API resource at the introspection endpoint.
public sealed class ApiSecretValidationResult
- Inheritance
-
ApiSecretValidationResult
- Inherited Members
Properties
IsError
Whether the API could not be authenticated.
public bool IsError { get; init; }
Property Value
Resource
The authenticated API resource; null on failure.
public ApiResource? Resource { get; init; }
Property Value
Methods
Failure()
A failed authentication. It carries no reason: the caller is told only that it was refused.
public static ApiSecretValidationResult Failure()
Returns
- ApiSecretValidationResult
A result with IsError true and no resource.
Success(ApiResource)
A successful authentication of resource.
public static ApiSecretValidationResult Success(ApiResource resource)
Parameters
resourceApiResourceThe API resource the credential belongs to.
Returns
- ApiSecretValidationResult
A result with IsError false.