Skip to main content

IUserCredentialsAuthenticator Interface

Abblix.Oidc.Server

Abblix.Oidc.Server.Common.Interfaces

IUserCredentialsAuthenticator Interface

Validates a username and password pair against the host's user store and produces an authorized grant when the credentials are correct. Used by the Resource Owner Password Credentials grant (grant_type=password) at the token endpoint, so the host can plug its own identity backend behind the OAuth flow.

public interface IUserCredentialsAuthenticator

Methods

IUserCredentialsAuthenticator.ValidateAsync(string, string, AuthorizationContext) Method

Validates user credentials (username and password) and returns a grant authorization result.

System.Threading.Tasks.Task<Abblix.Utils.Result<Abblix.Oidc.Server.Endpoints.Token.Interfaces.AuthorizedGrant,Abblix.Oidc.Server.Common.OidcError>> ValidateAsync(string userName, string password, Abblix.Oidc.Server.Common.AuthorizationContext context);

Parameters

userName System.String

The username provided by the user.

password System.String

The password provided by the user.

context AuthorizationContext

The authorization context associated with the request.

Returns

System.Threading.Tasks.Task<Abblix.Utils.Result<AuthorizedGrant,OidcError>>
A task that represents the asynchronous validation operation and returns the grant authorization result.