Table of Contents

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

issuer string

The issuer the validated token named.

subject string

The subject claim the validated token carried.

cancellationToken CancellationToken

Cancels 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.