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:
- Create a subclass of
CognitoAuthClient
. - Implement the following abstract properties depending on your setup:
ServiceURL
PoolID
IdentityPoolID
ClientID
RegionEndpoint
- Create an instance of your client and call
LoginAsync(string username, string password)
when you are ready to login.
How to authenticate a request
- Import
Extensions
and callWithCognitoAuth(CognitoAuthClient)
, passing in your logged in client as the single parameter. (returns the request for chaining) - 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:
- Only async
- Spoofs user agent string
Dependencies:
A small helper to authenticate Flurl requests for AWS Cognito Identity
How to login:
- Create a subclass of
CognitoAuthClient
. - Implement the following abstract properties depending on your setup:
ServiceURL
PoolID
IdentityPoolID
ClientID
RegionEndpoint
- Create an instance of your client and call
LoginAsync(string username, string password)
when you are ready to login.
How to authenticate a request
- Import
Extensions
and callWithCognitoAuth(CognitoAuthClient)
, passing in your logged in client as the single parameter. (returns the request for chaining) - 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:
- Only async
- Spoofs user agent string
Dependencies:
Dependencies
-
.NETCoreApp 2.1
- AWSSDK.CognitoIdentityProvider (>= 3.3.12.16)
- AWSSDK.Extensions.CognitoAuthentication (>= 0.9.4)
- Flurl (>= 2.8.1)
- Flurl.Http (>= 2.4.1)
-
.NETFramework 4.7.1
- AWSSDK.CognitoIdentityProvider (>= 3.3.12.16)
- AWSSDK.Extensions.CognitoAuthentication (>= 0.9.4)
- Flurl (>= 2.8.1)
- Flurl.Http (>= 2.4.1)
-
.NETStandard 2.0
- AWSSDK.CognitoIdentityProvider (>= 3.3.12.16)
- AWSSDK.Extensions.CognitoAuthentication (>= 0.9.4)
- Flurl (>= 2.8.1)
- Flurl.Http (>= 2.4.1)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.