Threax.AspNetCore.UserBuilder by Andrew Piper

<PackageReference Include="Threax.AspNetCore.UserBuilder" Version="4.0.0" />

 IUsersRepository

public interface IUsersRepository
A repository of user ids that are allowed access to an app.

Get the ids of the users in the given role.

Get the roles associated with the given user id.

Task<bool> HasUserId(Guid id)

Check to see if the given id is in the repository.

Task<bool> IsUserInRoles(Guid id, IEnumerable<string> roles)

Determine if a user is in a role specified by this repository.