IDapperMaticKeyOwners
Namespace: MJCZone.DapperMatic.AspNetCore.Authentication
Assembly: MJCZone.DapperMatic.AspNetCore
Summary
Finds a personal key's owner as they are now, each time the key signs in.
abstract public
Note: This is an interface that defines a contract. Look for implementing classes in the same or related namespaces.
Contents
Methods (1)
Methods
FindAsync
Finds a key's owner.
csharp
ValueTask<ClaimsPrincipal?> FindAsync(
string ownerId,
string tenant,
CancellationToken cancellationToken)Parameters
- ownerId (string) - The owner's user id.
- tenant (string) - The key's tenant, or null for none.
- cancellationToken (CancellationToken) - The cancellation token.
Returns
Type: ValueTask<ClaimsPrincipal?>
The owner as they are now, in that tenant; null when they are gone, turned off, or no longer in it.