/var/www/greso.tech/server/nsm/node_modules/google-auth-library/build/src/auth
NameSizeModeActions
authclient.d.ts42040644editdlrm
authclient.js21440644editdlrm
awsclient.d.ts44410644editdlrm
awsclient.js121900644editdlrm
awsrequestsigner.d.ts16260644editdlrm
awsrequestsigner.js92960644editdlrm
baseexternalclient.d.ts93010644editdlrm
baseexternalclient.js180850644editdlrm
computeclient.d.ts13450644editdlrm
computeclient.js44420644editdlrm
credentials.d.ts22760644editdlrm
credentials.js7040644editdlrm
downscopedclient.d.ts65400644editdlrm
downscopedclient.js131660644editdlrm
envDetect.d.ts3240644editdlrm
envDetect.js26670644editdlrm
executable-response.d.ts44890644editdlrm
executable-response.js67140644editdlrm
externalAccountAuthorizedUserClient.d.ts34260644editdlrm
externalAccountAuthorizedUserClient.js101550644editdlrm
externalclient.d.ts13560644editdlrm
externalclient.js29790644editdlrm
googleauth.d.ts116260644editdlrm
googleauth.js288830644editdlrm
iam.d.ts6230644editdlrm
iam.js13480644editdlrm
identitypoolclient.d.ts36920644editdlrm
identitypoolclient.js75670644editdlrm
idtokenclient.d.ts8960644editdlrm
idtokenclient.js20880644editdlrm
impersonated.d.ts47690644editdlrm
impersonated.js68750644editdlrm
jwtaccess.d.ts24090644editdlrm
jwtaccess.js69870644editdlrm
jwtclient.d.ts38330644editdlrm
jwtclient.js100500644editdlrm
loginticket.d.ts53670644editdlrm
loginticket.js17680644editdlrm
oauth2client.d.ts225210644editdlrm
oauth2client.js313120644editdlrm
oauth2common.d.ts33770644editdlrm
oauth2common.js77340644editdlrm
pluggable-auth-client.d.ts59830644editdlrm
pluggable-auth-client.js99260644editdlrm
pluggable-auth-handler.d.ts18420644editdlrm
pluggable-auth-handler.js68240644editdlrm
refreshclient.d.ts17430644editdlrm
refreshclient.js42310644editdlrm
stscredentials.d.ts46360644editdlrm
stscredentials.js48860644editdlrm
Edit: /var/www/greso.tech/server/nsm/node_modules/google-auth-library/build/src/auth/awsclient.d.ts (4441B)
import { BaseExternalAccountClient, BaseExternalAccountClientOptions } from './baseexternalclient'; import { RefreshOptions } from './oauth2client'; /** * AWS credentials JSON interface. This is used for AWS workloads. */ export interface AwsClientOptions extends BaseExternalAccountClientOptions { credential_source: { environment_id: string; region_url?: string; url?: string; regional_cred_verification_url: string; imdsv2_session_token_url?: string; }; } /** * 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 readonly environmentId; private readonly regionUrl?; private readonly securityCredentialsUrl?; private readonly regionalCredVerificationUrl; private readonly imdsV2SessionTokenUrl?; private awsRequestSigner; private region; static AWS_EC2_METADATA_IPV4_ADDRESS: string; 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. * @param additionalOptions Optional additional behavior customization * options. These currently customize expiration threshold time and * whether to retry on 401/403 API request errors. */ constructor(options: AwsClientOptions, additionalOptions?: RefreshOptions); private validateEnvironmentId; /** * Triggered when an external subject token is needed to be exchanged for a * GCP access token via GCP STS endpoint. * This uses the `options.credential_source` object to figure out how * to retrieve the token using the current environment. In this case, * this uses a serialized AWS signed request to the STS GetCallerIdentity * endpoint. * The logic is summarized as: * 1. If imdsv2_session_token_url is provided in the credential source, then * fetch the aws session token and include it in the headers of the * metadata requests. This is a requirement for IDMSv2 but optional * for IDMSv1. * 2. Retrieve AWS region from availability-zone. * 3a. Check AWS credentials in environment variables. If not found, get * from security-credentials endpoint. * 3b. Get AWS credentials from security-credentials endpoint. In order * to retrieve this, the AWS role needs to be determined by calling * security-credentials endpoint without any argument. Then the * credentials can be retrieved via: security-credentials/role_name * 4. Generate the signed request to AWS STS GetCallerIdentity action. * 5. Inject x-goog-cloud-target-resource into header and serialize the * signed request. This will be the subject-token to pass to GCP STS. * @return A promise that resolves with the external subject token. */ retrieveSubjectToken(): Promise; /** * @return A promise that resolves with the IMDSv2 Session Token. */ private getImdsV2SessionToken; /** * @param headers The headers to be used in the metadata request. * @return A promise that resolves with the current AWS region. */ private getAwsRegion; /** * @param headers The headers to be used in the metadata request. * @return A promise that resolves with the assigned role to the current * AWS VM. This is needed for calling the security-credentials endpoint. */ private getAwsRoleName; /** * Retrieves the temporary AWS credentials by calling the security-credentials * endpoint as specified in the `credential_source` object. * @param roleName The role attached to the current VM. * @param headers The headers to be used in the metadata request. * @return A promise that resolves with the temporary AWS credentials * needed for creating the GetCallerIdentity signed request. */ private getAwsSecurityCredentials; private shouldUseMetadataServer; private get regionFromEnv(); private get securityCredentialsFromEnv(); }