Class PostgresUserProvider

Assembly: redb.Postgres.dll

PostgreSQL implementation of user provider.
Inherits all business logic from UserProviderBase.
Only provides PostgreSQL-specific SQL dialect and password hasher.
Usage:
services.AddScoped<IUserProvider, PostgresUserProvider>();

public class PostgresUserProvider : UserProviderBase, IUserProvider

Inheritance

Object→UserProviderBase→PostgresUserProvider

Implements

Inherited Members

UserProviderBase.BuildUserCountSql(UserSearchCriteria?, out object[]),UserProviderBase.BuildUserSearchSql(UserSearchCriteria?, out object[]),UserProviderBase.BuildUserWhereClause(UserSearchCriteria?, out object[]),UserProviderBase.ChangePasswordAsync(IRedbUser, string, string, IRedbUser?),UserProviderBase.ChangePasswordAsync(IRedbUser, string, string, IRedbUser?, CancellationToken),UserProviderBase.CountUsersAsync(UserSearchCriteria?, CancellationToken),UserProviderBase.CreateUserAsync(CreateUserRequest, IRedbUser?),UserProviderBase.CreateUserAsync(CreateUserRequest, IRedbUser?, CancellationToken),UserProviderBase.DeleteUserAsync(IRedbUser, IRedbUser?),UserProviderBase.DeleteUserAsync(IRedbUser, IRedbUser?, CancellationToken),UserProviderBase.DisableUserAsync(IRedbUser, IRedbUser?),UserProviderBase.DisableUserAsync(IRedbUser, IRedbUser?, CancellationToken),UserProviderBase.EnableUserAsync(IRedbUser, IRedbUser?),UserProviderBase.EnableUserAsync(IRedbUser, IRedbUser?, CancellationToken),UserProviderBase.EscapeLikeWildcards(string),UserProviderBase.GetActiveUserCountAsync(DateTimeOffset, DateTimeOffset),UserProviderBase.GetActiveUserCountAsync(DateTimeOffset, DateTimeOffset, CancellationToken),UserProviderBase.GetUserByEmailAsync(string, CancellationToken),UserProviderBase.GetUserByIdAsync(long),UserProviderBase.GetUserByIdAsync(long, CancellationToken),UserProviderBase.GetUserByLoginAsync(string),UserProviderBase.GetUserByLoginAsync(string, CancellationToken),UserProviderBase.GetUserConfigurationIdAsync(long),UserProviderBase.GetUserConfigurationIdAsync(long, CancellationToken),UserProviderBase.GetUserCountAsync(bool),UserProviderBase.GetUserCountAsync(bool, CancellationToken),UserProviderBase.GetUserRolesAsync(long),UserProviderBase.GetUserRolesAsync(long, CancellationToken),UserProviderBase.GetUsersAsync(UserSearchCriteria?),UserProviderBase.GetUsersAsync(UserSearchCriteria?, CancellationToken),UserProviderBase.GetUsersByIdsAsync(IEnumerable<long>, CancellationToken),UserProviderBase.IsLoginAvailableAsync(string, long?),UserProviderBase.IsLoginAvailableAsync(string, long?, CancellationToken),UserProviderBase.LikeBracketIsWildcard,UserProviderBase.LoadUserAsync(long),UserProviderBase.LoadUserAsync(long, CancellationToken),UserProviderBase.LoadUserAsync(string),UserProviderBase.LoadUserAsync(string, CancellationToken),UserProviderBase.OnUserCreatedAsync(IRedbUser, IRedbUser?),UserProviderBase.OnUserDeletedAsync(IRedbUser, IRedbUser?),UserProviderBase.OnUserUpdatedAsync(IRedbUser, IRedbUser?),UserProviderBase.SetPasswordAsync(IRedbUser, string, IRedbUser?),UserProviderBase.SetPasswordAsync(IRedbUser, string, IRedbUser?, CancellationToken),UserProviderBase.SetPasswordHashAsync(IRedbUser, string, IRedbUser?, CancellationToken),UserProviderBase.SetUserConfigurationAsync(long, long?),UserProviderBase.SetUserConfigurationAsync(long, long?, CancellationToken),UserProviderBase.UpdateUserAsync(IRedbUser, UpdateUserRequest, IRedbUser?),UserProviderBase.UpdateUserAsync(IRedbUser, UpdateUserRequest, IRedbUser?, CancellationToken),UserProviderBase.ValidateUserAsync(string, string),UserProviderBase.ValidateUserAsync(string, string, CancellationToken),UserProviderBase.ValidateUserDataAsync(CreateUserRequest),UserProviderBase.ValidateUserDataAsync(CreateUserRequest, CancellationToken)

Constructors

PostgresUserProvider(IRedbContext, IRedbSecurityContext, IPasswordHasher, ILogger?, ISqlDialect?)

Creates a new PostgreSQL user provider with custom password hasher.

PostgresUserProvider(IRedbContext, IRedbSecurityContext, IPasswordHasher, ILogger?)

Creates a new PostgreSQL user provider with custom password hasher.