/
opt
/
canhelp
/
node_modules
/
google-auth-library
/
build
/
src
/
auth
/
/opt/canhelp/node_modules/google-auth-library/build/src/auth
mkdir
upload
Name
Size
Mode
Actions
authclient.d.ts
10764
0644
edit
dl
rm
authclient.js
11247
0644
edit
dl
rm
awsclient.d.ts
5315
0644
edit
dl
rm
awsclient.js
7556
0644
edit
dl
rm
awsrequestsigner.d.ts
1626
0644
edit
dl
rm
awsrequestsigner.js
9442
0644
edit
dl
rm
baseexternalclient.d.ts
13020
0644
edit
dl
rm
baseexternalclient.js
20857
0644
edit
dl
rm
certificatesubjecttokensupplier.d.ts
2202
0644
edit
dl
rm
certificatesubjecttokensupplier.js
10619
0644
edit
dl
rm
computeclient.d.ts
1359
0644
edit
dl
rm
computeclient.js
4497
0644
edit
dl
rm
credentials.d.ts
2359
0644
edit
dl
rm
credentials.js
704
0644
edit
dl
rm
defaultawssecuritycredentialssupplier.d.ts
3795
0644
edit
dl
rm
defaultawssecuritycredentialssupplier.js
9330
0644
edit
dl
rm
downscopedclient.d.ts
6693
0644
edit
dl
rm
downscopedclient.js
12353
0644
edit
dl
rm
envDetect.d.ts
363
0644
edit
dl
rm
envDetect.js
2831
0644
edit
dl
rm
executable-response.d.ts
4489
0644
edit
dl
rm
executable-response.js
7519
0644
edit
dl
rm
externalAccountAuthorizedUserClient.d.ts
3173
0644
edit
dl
rm
externalAccountAuthorizedUserClient.js
10005
0644
edit
dl
rm
externalclient.d.ts
1528
0644
edit
dl
rm
externalclient.js
3048
0644
edit
dl
rm
filesubjecttokensupplier.d.ts
1608
0644
edit
dl
rm
filesubjecttokensupplier.js
3515
0644
edit
dl
rm
googleauth.d.ts
23574
0644
edit
dl
rm
googleauth.js
36374
0644
edit
dl
rm
iam.d.ts
623
0644
edit
dl
rm
iam.js
1373
0644
edit
dl
rm
identitypoolclient.d.ts
5626
0644
edit
dl
rm
identitypoolclient.js
6775
0644
edit
dl
rm
idtokenclient.d.ts
938
0644
edit
dl
rm
idtokenclient.js
2106
0644
edit
dl
rm
impersonated.d.ts
5687
0644
edit
dl
rm
impersonated.js
8654
0644
edit
dl
rm
jwtaccess.d.ts
2336
0644
edit
dl
rm
jwtaccess.js
7213
0644
edit
dl
rm
jwtclient.d.ts
5122
0644
edit
dl
rm
jwtclient.js
11256
0644
edit
dl
rm
loginticket.d.ts
5367
0644
edit
dl
rm
loginticket.js
1795
0644
edit
dl
rm
oauth2client.d.ts
25326
0644
edit
dl
rm
oauth2client.js
33662
0644
edit
dl
rm
oauth2common.d.ts
4094
0644
edit
dl
rm
oauth2common.js
8080
0644
edit
dl
rm
passthrough.d.ts
1097
0644
edit
dl
rm
passthrough.js
1842
0644
edit
dl
rm
pluggable-auth-client.d.ts
5485
0644
edit
dl
rm
pluggable-auth-client.js
10002
0644
edit
dl
rm
pluggable-auth-handler.d.ts
2109
0644
edit
dl
rm
pluggable-auth-handler.js
7260
0644
edit
dl
rm
refreshclient.d.ts
3436
0644
edit
dl
rm
refreshclient.js
6650
0644
edit
dl
rm
stscredentials.d.ts
5261
0644
edit
dl
rm
stscredentials.js
4738
0644
edit
dl
rm
urlsubjecttokensupplier.d.ts
2186
0644
edit
dl
rm
urlsubjecttokensupplier.js
2859
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/google-auth-library/build/src/auth/awsclient.d.ts
(5315B)
import { AwsSecurityCredentials } from './awsrequestsigner'; import { BaseExternalAccountClient, BaseExternalAccountClientOptions, ExternalAccountSupplierContext } from './baseexternalclient'; import { SnakeToCamelObject } from '../util'; /** * AWS credentials JSON interface. This is used for AWS workloads. */ export interface AwsClientOptions extends BaseExternalAccountClientOptions { /** * Object containing options to retrieve AWS security credentials. A valid credential * source or a aws security credentials supplier should be specified. */ credential_source?: { /** * AWS environment ID. Currently only 'AWS1' is supported. */ environment_id: string; /** * The EC2 metadata URL to retrieve the current AWS region from. If this is * not provided, the region should be present in the AWS_REGION or AWS_DEFAULT_REGION * environment variables. */ region_url?: string; /** * The EC2 metadata URL to retrieve AWS security credentials. If this is not provided, * the credentials should be present in the AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, * and AWS_SESSION_TOKEN environment variables. */ url?: string; /** * The regional GetCallerIdentity action URL, used to determine the account * ID and its roles. */ regional_cred_verification_url: string; /** * The imdsv2 session token url is used to fetch session token from AWS * which is later sent through headers for metadata requests. If the * field is missing, then session token won't be fetched and sent with * the metadata requests. * The session token is required for IMDSv2 but optional for IMDSv1 */ imdsv2_session_token_url?: string; }; /** * The AWS security credentials supplier to call to retrieve the AWS region * and AWS security credentials. Either this or a valid credential source * must be specified. */ aws_security_credentials_supplier?: AwsSecurityCredentialsSupplier; } /** * Supplier interface for AWS security credentials. This can be implemented to * return an AWS region and AWS security credentials. These credentials can * then be exchanged for a GCP token by an {@link AwsClient}. */ export interface AwsSecurityCredentialsSupplier { /** * Gets the active AWS region. * @param context {@link ExternalAccountSupplierContext} from the calling * {@link AwsClient}, contains the requested audience and subject token type * for the external account identity as well as the transport from the * calling client to use for requests. * @return A promise that resolves with the AWS region string. */ getAwsRegion: (context: ExternalAccountSupplierContext) => Promise<string>; /** * Gets valid AWS security credentials for the requested external account * identity. Note that these are not cached by the calling {@link AwsClient}, * so caching should be including in the implementation. * @param context {@link ExternalAccountSupplierContext} from the calling * {@link AwsClient}, contains the requested audience and subject token type * for the external account identity as well as the transport from the * calling client to use for requests. * @return A promise that resolves with the requested {@link AwsSecurityCredentials}. */ getAwsSecurityCredentials: (context: ExternalAccountSupplierContext) => Promise<AwsSecurityCredentials>; } /** * AWS external account client. This is used for AWS workloads, where * AWS STS GetCallerIdentity serialized signed requests are exchanged for * GCP access token. */ export declare class AwsClient extends BaseExternalAccountClient { #private; private readonly environmentId?; private readonly awsSecurityCredentialsSupplier; private readonly regionalCredVerificationUrl; private awsRequestSigner; private region; /** * @deprecated AWS client no validates the EC2 metadata address. **/ static AWS_EC2_METADATA_IPV4_ADDRESS: string; /** * @deprecated AWS client no validates the EC2 metadata address. **/ static AWS_EC2_METADATA_IPV6_ADDRESS: string; /** * Instantiates an AwsClient instance using the provided JSON * object loaded from an external account credentials file. * An error is thrown if the credential is not a valid AWS credential. * @param options The external account options object typically loaded * from the external account JSON credential file. */ constructor(options: AwsClientOptions | SnakeToCamelObject<AwsClientOptions>); private validateEnvironmentId; /** * Triggered when an external subject token is needed to be exchanged for a * GCP access token via GCP STS endpoint. This will call the * {@link AwsSecurityCredentialsSupplier} to retrieve an AWS region and AWS * Security Credentials, then use them to create a signed AWS STS request that * can be exchanged for a GCP access token. * @return A promise that resolves with the external subject token. */ retrieveSubjectToken(): Promise<string>; }
Save
cmd:
run