npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@datafire/amazonaws_cognito_identity

v5.0.0

Published

DataFire integration for Amazon Cognito Identity

Downloads

30

Readme

@datafire/amazonaws_cognito_identity

Client library for Amazon Cognito Identity

Installation and Usage

npm install --save @datafire/amazonaws_cognito_identity
let amazonaws_cognito_identity = require('@datafire/amazonaws_cognito_identity').create({
  accessKeyId: "",
  secretAccessKey: "",
  region: ""
});

amazonaws_cognito_identity.CreateIdentityPool({
  "IdentityPoolName": "",
  "AllowUnauthenticatedIdentities": true
}).then(data => {
  console.log(data);
});

Description

Amazon Cognito Amazon Cognito is a web service that delivers scoped temporary credentials to mobile devices and other untrusted environments. Amazon Cognito uniquely identifies a device and supplies the user with a consistent identity over the lifetime of an application. Using Amazon Cognito, you can enable authentication with one or more third-party identity providers (Facebook, Google, or Login with Amazon), and you can also choose to support unauthenticated access from your app. Cognito delivers a unique identifier for each user and acts as an OpenID token provider trusted by AWS Security Token Service (STS) to access temporary, limited-privilege AWS credentials. To provide end-user credentials, first make an unsigned call to GetId. If the end user is authenticated with one of the supported identity providers, set the Logins map with the identity provider token. GetId returns a unique identifier for the user. Next, make an unsigned call to GetCredentialsForIdentity. This call expects the same Logins map as the GetId call, as well as the IdentityID originally returned by GetId. Assuming your identity pool has been configured via the SetIdentityPoolRoles operation, GetCredentialsForIdentity will return AWS credentials for your use. If your pool has not been configured with SetIdentityPoolRoles, or if you want to follow legacy flow, make an unsigned call to GetOpenIdToken, which returns the OpenID token necessary to call STS and retrieve AWS credentials. This call expects the same Logins map as the GetId call, as well as the IdentityID originally returned by GetId. The token returned by GetOpenIdToken can be passed to the STS operation AssumeRoleWithWebIdentity to retrieve AWS credentials. If you want to use Amazon Cognito in an Android, iOS, or Unity application, you will probably want to make API calls via the AWS Mobile SDK. To learn more, see the AWS Mobile SDK Developer Guide.

Actions

CreateIdentityPool

amazonaws_cognito_identity.CreateIdentityPool({
  "IdentityPoolName": "",
  "AllowUnauthenticatedIdentities": true
}, context)

Input

Output

DeleteIdentities

amazonaws_cognito_identity.DeleteIdentities({
  "IdentityIdsToDelete": []
}, context)

Input

Output

DeleteIdentityPool

amazonaws_cognito_identity.DeleteIdentityPool({
  "IdentityPoolId": ""
}, context)

Input

Output

Output schema unknown

DescribeIdentity

amazonaws_cognito_identity.DescribeIdentity({
  "IdentityId": ""
}, context)

Input

Output

DescribeIdentityPool

amazonaws_cognito_identity.DescribeIdentityPool({
  "IdentityPoolId": ""
}, context)

Input

Output

GetCredentialsForIdentity

amazonaws_cognito_identity.GetCredentialsForIdentity({
  "IdentityId": ""
}, context)

Input

Output

GetId

amazonaws_cognito_identity.GetId({
  "IdentityPoolId": ""
}, context)

Input

Output

GetIdentityPoolRoles

amazonaws_cognito_identity.GetIdentityPoolRoles({
  "IdentityPoolId": ""
}, context)

Input

Output

GetOpenIdToken

amazonaws_cognito_identity.GetOpenIdToken({
  "IdentityId": ""
}, context)

Input

Output

GetOpenIdTokenForDeveloperIdentity

amazonaws_cognito_identity.GetOpenIdTokenForDeveloperIdentity({
  "IdentityPoolId": "",
  "Logins": []
}, context)

Input

Output

ListIdentities

amazonaws_cognito_identity.ListIdentities({
  "IdentityPoolId": "",
  "MaxResults": 0
}, context)

Input

Output

ListIdentityPools

amazonaws_cognito_identity.ListIdentityPools({
  "MaxResults": 0
}, context)

Input

Output

LookupDeveloperIdentity

amazonaws_cognito_identity.LookupDeveloperIdentity({
  "IdentityPoolId": ""
}, context)

Input

Output

MergeDeveloperIdentities

amazonaws_cognito_identity.MergeDeveloperIdentities({
  "SourceUserIdentifier": "",
  "DestinationUserIdentifier": "",
  "DeveloperProviderName": "",
  "IdentityPoolId": ""
}, context)

Input

Output

SetIdentityPoolRoles

amazonaws_cognito_identity.SetIdentityPoolRoles({
  "IdentityPoolId": "",
  "Roles": []
}, context)

Input

Output

Output schema unknown

UnlinkDeveloperIdentity

amazonaws_cognito_identity.UnlinkDeveloperIdentity({
  "IdentityId": "",
  "IdentityPoolId": "",
  "DeveloperProviderName": "",
  "DeveloperUserIdentifier": ""
}, context)

Input

Output

Output schema unknown

UnlinkIdentity

amazonaws_cognito_identity.UnlinkIdentity({
  "IdentityId": "",
  "Logins": [],
  "LoginsToRemove": []
}, context)

Input

Output

Output schema unknown

UpdateIdentityPool

amazonaws_cognito_identity.UpdateIdentityPool({
  "IdentityPoolId": "",
  "IdentityPoolName": "",
  "AllowUnauthenticatedIdentities": true
}, context)

Input

Output

Definitions

ARNString

  • ARNString string

AccessKeyString

  • AccessKeyString string

AccountId

  • AccountId string

AmbiguousRoleResolutionType

  • AmbiguousRoleResolutionType string (values: AuthenticatedRole, Deny)

ClaimName

  • ClaimName string

ClaimValue

  • ClaimValue string

CognitoIdentityProvider

CognitoIdentityProviderClientId

  • CognitoIdentityProviderClientId string

CognitoIdentityProviderList

CognitoIdentityProviderName

  • CognitoIdentityProviderName string

CognitoIdentityProviderTokenCheck

  • CognitoIdentityProviderTokenCheck boolean

ConcurrentModificationException

  • ConcurrentModificationException object: Thrown if there are parallel requests to modify a resource.

CreateIdentityPoolInput

Credentials

DateType

  • DateType string

DeleteIdentitiesInput

  • DeleteIdentitiesInput object: Input to the DeleteIdentities action.

DeleteIdentitiesResponse

  • DeleteIdentitiesResponse object: Returned in response to a successful DeleteIdentities operation.

DeleteIdentityPoolInput

  • DeleteIdentityPoolInput object: Input to the DeleteIdentityPool action.

DescribeIdentityInput

  • DescribeIdentityInput object: Input to the DescribeIdentity action.

DescribeIdentityPoolInput

  • DescribeIdentityPoolInput object: Input to the DescribeIdentityPool action.

DeveloperProviderName

  • DeveloperProviderName string

DeveloperUserAlreadyRegisteredException

  • DeveloperUserAlreadyRegisteredException object: The provided developer user identifier is already registered with Cognito under a different identity ID.

DeveloperUserIdentifier

  • DeveloperUserIdentifier string

DeveloperUserIdentifierList

ErrorCode

  • ErrorCode string (values: AccessDenied, InternalServerError)

ExternalServiceException

  • ExternalServiceException object: An exception thrown when a dependent service such as Facebook or Twitter is not responding

GetCredentialsForIdentityInput

  • GetCredentialsForIdentityInput object: Input to the GetCredentialsForIdentity action.

GetCredentialsForIdentityResponse

  • GetCredentialsForIdentityResponse object: Returned in response to a successful GetCredentialsForIdentity operation.

GetIdInput

GetIdResponse

  • GetIdResponse object: Returned in response to a GetId request.

GetIdentityPoolRolesInput

  • GetIdentityPoolRolesInput object: Input to the GetIdentityPoolRoles action.

GetIdentityPoolRolesResponse

GetOpenIdTokenForDeveloperIdentityInput

GetOpenIdTokenForDeveloperIdentityResponse

  • GetOpenIdTokenForDeveloperIdentityResponse object: Returned in response to a successful GetOpenIdTokenForDeveloperIdentity request.

GetOpenIdTokenInput

  • GetOpenIdTokenInput object: Input to the GetOpenIdToken action.

GetOpenIdTokenResponse

  • GetOpenIdTokenResponse object: Returned in response to a successful GetOpenIdToken request.

HideDisabled

  • HideDisabled boolean

IdentitiesList

IdentityDescription

IdentityId

  • IdentityId string

IdentityIdList

IdentityPool

IdentityPoolId

  • IdentityPoolId string

IdentityPoolName

  • IdentityPoolName string

IdentityPoolShortDescription

IdentityPoolUnauthenticated

  • IdentityPoolUnauthenticated boolean

IdentityPoolsList

IdentityProviderId

  • IdentityProviderId string

IdentityProviderName

  • IdentityProviderName string

IdentityProviderToken

  • IdentityProviderToken string

IdentityProviders

InternalErrorException

  • InternalErrorException object: Thrown when the service encounters an error during processing the request.

InvalidIdentityPoolConfigurationException

  • InvalidIdentityPoolConfigurationException object: Thrown if the identity pool has no role associated for the given auth type (auth/unauth) or if the AssumeRole fails.

InvalidParameterException

  • InvalidParameterException object: Thrown for missing or bad input parameter(s).

LimitExceededException

  • LimitExceededException object: Thrown when the total number of user pools has exceeded a preset limit.

ListIdentitiesInput

ListIdentitiesResponse

ListIdentityPoolsInput

  • ListIdentityPoolsInput object: Input to the ListIdentityPools action.

ListIdentityPoolsResponse

LoginsList

LoginsMap

LookupDeveloperIdentityInput

LookupDeveloperIdentityResponse

MappingRule

MappingRuleMatchType

  • MappingRuleMatchType string (values: Equals, Contains, StartsWith, NotEqual)

MappingRulesList

MergeDeveloperIdentitiesInput

MergeDeveloperIdentitiesResponse

  • MergeDeveloperIdentitiesResponse object: Returned in response to a successful MergeDeveloperIdentities action.

NotAuthorizedException

  • NotAuthorizedException object: Thrown when a user is not authorized to access the requested resource.

OIDCProviderList

OIDCToken

  • OIDCToken string

PaginationKey

  • PaginationKey string

QueryLimit

  • QueryLimit integer

ResourceConflictException

  • ResourceConflictException object: Thrown when a user tries to use a login which is already linked to another account.

ResourceNotFoundException

  • ResourceNotFoundException object: Thrown when the requested resource (for example, a dataset or record) does not exist.

RoleMapping

RoleMappingMap

RoleMappingType

  • RoleMappingType string (values: Token, Rules)

RoleType

  • RoleType string

RolesMap

RulesConfigurationType

  • RulesConfigurationType object: A container for rules.

SAMLProviderList

SecretKeyString

  • SecretKeyString string

SessionTokenString

  • SessionTokenString string

SetIdentityPoolRolesInput

String

  • String string

TokenDuration

  • TokenDuration integer

TooManyRequestsException

  • TooManyRequestsException object: Thrown when a request is throttled.

UnlinkDeveloperIdentityInput

UnlinkIdentityInput

  • UnlinkIdentityInput object: Input to the UnlinkIdentity action.

UnprocessedIdentityId

  • UnprocessedIdentityId object: An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and IdentityId.

UnprocessedIdentityIdList