Interface IPushedAuthorizationRequestStore
- Namespace
- Fdyay.IdentityServer.Stores
- Assembly
- Fdyay.IdentityServer.Core.dll
Persists authorization requests pushed to the PAR endpoint (RFC 9126).
public interface IPushedAuthorizationRequestStore
Methods
GetAsync(string, CancellationToken)
Reads a pushed request by the hash of its reference value.
Task<PushedAuthorizationRequest?> GetAsync(string referenceValueHash, CancellationToken cancellationToken = default)
Parameters
referenceValueHashstringcancellationTokenCancellationToken
Returns
- Task<PushedAuthorizationRequest>
Null when the hash is unknown. Expiry is the caller's to enforce.
RemoveAsync(string, CancellationToken)
Removes a pushed request, so a reference value cannot be redeemed twice.
Task RemoveAsync(string referenceValueHash, CancellationToken cancellationToken = default)
Parameters
referenceValueHashstringcancellationTokenCancellationToken
Returns
StoreAsync(PushedAuthorizationRequest, CancellationToken)
Stores a pushed request, replacing any entry with the same hash.
Task StoreAsync(PushedAuthorizationRequest request, CancellationToken cancellationToken = default)
Parameters
requestPushedAuthorizationRequestcancellationTokenCancellationToken