Flurl.Unofficial.AWSCognitoIdentity 1.0.1.1

A small helper to authenticate Flurl requests for AWS Cognito Identity

Install-Package Flurl.Unofficial.AWSCognitoIdentity -Version 1.0.1.1
dotnet add package Flurl.Unofficial.AWSCognitoIdentity --version 1.0.1.1
<PackageReference Include="Flurl.Unofficial.AWSCognitoIdentity" Version="1.0.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Flurl.Unofficial.AWSCognitoIdentity --version 1.0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

A small helper to authenticate Flurl requests for AWS Cognito Identity

How to login:

  1. Create a subclass of CognitoAuthClient.
  2. Implement the following abstract properties depending on your setup:
    • ServiceURL
    • PoolID
    • IdentityPoolID
    • ClientID
    • RegionEndpoint
  3. Create an instance of your client and call LoginAsync(string username, string password) when you are ready to login.

How to authenticate a request

  1. Import Extensions and call WithCognitoAuth(CognitoAuthClient), passing in your logged in client as the single parameter. (returns the request for chaining)
  2. Dispatch as you normally would, authentication is handled lazily in the background on an event.

Example:

"https://example.com/real_cognito_endpoint/hey".WithCognitoAuth().GetJsonAsync();

Notes:

Dependencies:

A small helper to authenticate Flurl requests for AWS Cognito Identity

How to login:

  1. Create a subclass of CognitoAuthClient.
  2. Implement the following abstract properties depending on your setup:
    • ServiceURL
    • PoolID
    • IdentityPoolID
    • ClientID
    • RegionEndpoint
  3. Create an instance of your client and call LoginAsync(string username, string password) when you are ready to login.

How to authenticate a request

  1. Import Extensions and call WithCognitoAuth(CognitoAuthClient), passing in your logged in client as the single parameter. (returns the request for chaining)
  2. Dispatch as you normally would, authentication is handled lazily in the background on an event.

Example:

"https://example.com/real_cognito_endpoint/hey".WithCognitoAuth().GetJsonAsync();

Notes:

Dependencies:

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1.1 459 2/22/2019
1.0.1 191 2/22/2019
1.0.0 200 2/22/2019