@aws-sdk/credential-provider-cognito-identity 3.301.0 → 3.303.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-types/CognitoProviderParameters.d.ts +3 -0
- package/dist-types/InMemoryStorage.d.ts +3 -0
- package/dist-types/IndexedDbStorage.d.ts +3 -0
- package/dist-types/Logins.d.ts +6 -0
- package/dist-types/Storage.d.ts +2 -0
- package/dist-types/fromCognitoIdentity.d.ts +11 -0
- package/dist-types/fromCognitoIdentityPool.d.ts +5 -0
- package/dist-types/index.d.ts +15 -0
- package/dist-types/localStorage.d.ts +3 -0
- package/package.json +4 -4
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { CognitoIdentityClient } from "@aws-sdk/client-cognito-identity";
|
|
2
2
|
import { Logins } from "./Logins";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
3
6
|
export interface CognitoProviderParameters {
|
|
4
7
|
/**
|
|
5
8
|
* The SDK client with which the credential provider will contact the Amazon
|
package/dist-types/Logins.d.ts
CHANGED
package/dist-types/Storage.d.ts
CHANGED
|
@@ -1,19 +1,30 @@
|
|
|
1
1
|
import { AwsCredentialIdentity, Provider } from "@aws-sdk/types";
|
|
2
2
|
import { CognitoProviderParameters } from "./CognitoProviderParameters";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
3
6
|
export interface CognitoIdentityCredentials extends AwsCredentialIdentity {
|
|
4
7
|
/**
|
|
5
8
|
* The Cognito ID returned by the last call to AWS.CognitoIdentity.getOpenIdToken().
|
|
6
9
|
*/
|
|
7
10
|
identityId: string;
|
|
8
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
9
15
|
export type CognitoIdentityCredentialProvider = Provider<CognitoIdentityCredentials>;
|
|
10
16
|
/**
|
|
17
|
+
* @internal
|
|
18
|
+
*
|
|
11
19
|
* Retrieves temporary AWS credentials using Amazon Cognito's
|
|
12
20
|
* `GetCredentialsForIdentity` operation.
|
|
13
21
|
*
|
|
14
22
|
* Results from this function call are not cached internally.
|
|
15
23
|
*/
|
|
16
24
|
export declare function fromCognitoIdentity(parameters: FromCognitoIdentityParameters): CognitoIdentityCredentialProvider;
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
17
28
|
export interface FromCognitoIdentityParameters extends CognitoProviderParameters {
|
|
18
29
|
/**
|
|
19
30
|
* The unique identifier for the identity against which credentials will be
|
|
@@ -2,6 +2,8 @@ import { CognitoProviderParameters } from "./CognitoProviderParameters";
|
|
|
2
2
|
import { CognitoIdentityCredentialProvider } from "./fromCognitoIdentity";
|
|
3
3
|
import { Storage } from "./Storage";
|
|
4
4
|
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*
|
|
5
7
|
* Retrieves or generates a unique identifier using Amazon Cognito's `GetId`
|
|
6
8
|
* operation, then generates temporary AWS credentials using Amazon Cognito's
|
|
7
9
|
* `GetCredentialsForIdentity` operation.
|
|
@@ -10,6 +12,9 @@ import { Storage } from "./Storage";
|
|
|
10
12
|
* `GetCredentialsForIdentity` are not.
|
|
11
13
|
*/
|
|
12
14
|
export declare function fromCognitoIdentityPool({ accountId, cache, client, customRoleArn, identityPoolId, logins, userIdentifier, }: FromCognitoIdentityPoolParameters): CognitoIdentityCredentialProvider;
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
13
18
|
export interface FromCognitoIdentityPoolParameters extends CognitoProviderParameters {
|
|
14
19
|
/**
|
|
15
20
|
* A standard AWS account ID (9+ digits).
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @internal
|
|
3
|
+
*/
|
|
1
4
|
export * from "./CognitoProviderParameters";
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
2
8
|
export * from "./Logins";
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
3
12
|
export * from "./Storage";
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
4
16
|
export * from "./fromCognitoIdentity";
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
5
20
|
export * from "./fromCognitoIdentityPool";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-cognito-identity",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.303.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
},
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/client-cognito-identity": "3.
|
|
25
|
-
"@aws-sdk/property-provider": "3.
|
|
26
|
-
"@aws-sdk/types": "3.
|
|
24
|
+
"@aws-sdk/client-cognito-identity": "3.303.0",
|
|
25
|
+
"@aws-sdk/property-provider": "3.303.0",
|
|
26
|
+
"@aws-sdk/types": "3.303.0",
|
|
27
27
|
"tslib": "^2.5.0"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|