/
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/identitypoolclient.d.ts
(5626B)
import { BaseExternalAccountClient, BaseExternalAccountClientOptions, ExternalAccountSupplierContext } from './baseexternalclient'; import { SnakeToCamelObject } from '../util'; export type SubjectTokenFormatType = 'json' | 'text'; export interface SubjectTokenJsonResponse { [key: string]: string; } /** * Supplier interface for subject tokens. This can be implemented to * return a subject token which can then be exchanged for a GCP token by an * {@link IdentityPoolClient}. */ export interface SubjectTokenSupplier { /** * Gets a valid subject token for the requested external account identity. * Note that these are not cached by the calling {@link IdentityPoolClient}, * so caching should be including in the implementation. * @param context {@link ExternalAccountSupplierContext} from the calling * {@link IdentityPoolClient}, 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 subject token string. */ getSubjectToken: (context: ExternalAccountSupplierContext) => Promise<string>; } /** * Url-sourced/file-sourced credentials json interface. * This is used for K8s and Azure workloads. */ export interface IdentityPoolClientOptions extends BaseExternalAccountClientOptions { /** * Object containing options to retrieve identity pool credentials. A valid credential * source or a subject token supplier must be specified. */ credential_source?: { /** * The file location to read the subject token from. Either this, a URL * or a certificate location should be specified. */ file?: string; /** * The URL to call to retrieve the subject token. Either this, a file * location or a certificate location should be specified. */ url?: string; /** * Optional headers to send on the request to the specified URL. */ headers?: { [key: string]: string; }; /** * The format that the subject token is in the file or the URL response. * If not provided, will default to reading the text string directly. */ format?: { /** * The format type. Can either be 'text' or 'json'. */ type: SubjectTokenFormatType; /** * The field name containing the subject token value if the type is 'json'. */ subject_token_field_name?: string; }; /** * The certificate location to call to retrieve the subject token. Either this, a file * location, or an url should be specified. * @example * File Format: * ```json * { * "cert_configs": { * "workload": { * "key_path": "$PATH_TO_LEAF_KEY", * "cert_path": "$PATH_TO_LEAF_CERT" * } * } * } * ``` */ certificate?: { /** * Specify whether the certificate config should be used from the default location. * Either this or the certificate_config_location must be provided. * The certificate config file must be in the following JSON format: */ use_default_certificate_config?: boolean; /** * Location to fetch certificate config from in case default config is not to be used. * Either this or use_default_certificate_config=true should be provided. */ certificate_config_location?: string; /** * TrustChainPath specifies the path to a PEM-formatted file containing the X.509 certificate trust chain. * The file should contain any intermediate certificates needed to connect * the mTLS leaf certificate to a root certificate in the trust store. */ trust_chain_path?: string; }; }; /** * The subject token supplier to call to retrieve the subject token to exchange * for a GCP access token. Either this or a valid credential source should * be specified. */ subject_token_supplier?: SubjectTokenSupplier; } /** * Defines the Url-sourced and file-sourced external account clients mainly * used for K8s and Azure workloads. */ export declare class IdentityPoolClient extends BaseExternalAccountClient { private readonly subjectTokenSupplier; /** * Instantiate an IdentityPoolClient instance using the provided JSON * object loaded from an external account credentials file. * An error is thrown if the credential is not a valid file-sourced or * url-sourced credential or a workforce pool user project is provided * with a non workforce audience. * @param options The external account options object typically loaded * from the external account JSON credential file. The camelCased options * are aliases for the snake_cased options. */ constructor(options: IdentityPoolClientOptions | SnakeToCamelObject<IdentityPoolClientOptions>); /** * Triggered when a external subject token is needed to be exchanged for a GCP * access token via GCP STS endpoint. Gets a subject token by calling * the configured {@link SubjectTokenSupplier} * @return A promise that resolves with the external subject token. */ retrieveSubjectToken(): Promise<string>; }
Save
cmd:
run