Method ResolveAsync
- Namespace
- MailFathom.Infrastructure.Security.OAuth
- Assembly
- MailFathom.Infrastructure.dll
ResolveAsync(string?, string?, CancellationToken)
Reports which user one validated subject acts for.
public Task<AdmittedUserCredential?> ResolveAsync(string? issuer, string? subject, CancellationToken cancellationToken)
Parameters
issuerstringThe issuer the validated token named.
subjectstringThe subject claim the validated token carried.
cancellationTokenCancellationTokenCancels the read.
Returns
- Task<AdmittedUserCredential>
What the request is admitted as, or null when no enabled mapping names the subject.
Remarks
The grant it reports is the mapping's own, which is the ceiling wherever the endpoint reads a token's scopes as narrowing one and the whole grant otherwise.