Class BasicAuthorizationService
Inherited Members
Namespace: Innovt.Cloud.AWS.Cognito.Authorization
Assembly: Innovt.Cloud.AWS.Cognito.dll
Syntax
public class BasicAuthorizationService : AwsBaseService, IDisposable, IBasicAuthService
Constructors
| Edit this page View SourceBasicAuthorizationService(ILogger, IAwsConfiguration, string)
Declaration
public BasicAuthorizationService(ILogger logger, IAwsConfiguration configuration, string userPoolId)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | |
IAwsConfiguration | configuration | |
string | userPoolId |
Properties
| Edit this page View SourceUserPoolId
Declaration
public string UserPoolId { get; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceAuthenticate(string, string, CancellationToken)
Authenticates a user based on a provided username and password.
Declaration
public Task<bool> Authenticate(string userName, string password, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | userName | The username to authenticate. |
string | password | The password associated with the username. |
CancellationToken | cancellationToken | A cancellation token to cancel the operartion |
Returns
Type | Description |
---|---|
Task<bool> | A task that represents the asynchronous authentication operation.
The task result is |
DisposeServices()
Disposes of any services used by the AwsBaseService.
Declaration
protected override void DisposeServices()