/
var
/
www
/
qr4y.gr
/
server
/
delivery
/
node_modules
/
google-auth-library
/
build
/
src
/
auth
/
/var/www/qr4y.gr/server/delivery/node_modules/google-auth-library/build/src/auth
mkdir
upload
Name
Size
Mode
Actions
authclient.d.ts
4018
0644
edit
dl
rm
authclient.js
2144
0644
edit
dl
rm
awsclient.d.ts
4190
0644
edit
dl
rm
awsclient.js
10953
0644
edit
dl
rm
awsrequestsigner.d.ts
1630
0644
edit
dl
rm
awsrequestsigner.js
9296
0644
edit
dl
rm
baseexternalclient.d.ts
9385
0644
edit
dl
rm
baseexternalclient.js
19839
0644
edit
dl
rm
computeclient.d.ts
1345
0644
edit
dl
rm
computeclient.js
4442
0644
edit
dl
rm
credentials.d.ts
2276
0644
edit
dl
rm
credentials.js
704
0644
edit
dl
rm
downscopedclient.d.ts
6540
0644
edit
dl
rm
downscopedclient.js
13166
0644
edit
dl
rm
envDetect.d.ts
324
0644
edit
dl
rm
envDetect.js
2667
0644
edit
dl
rm
externalclient.d.ts
1265
0644
edit
dl
rm
externalclient.js
2636
0644
edit
dl
rm
googleauth.d.ts
11057
0644
edit
dl
rm
googleauth.js
28640
0644
edit
dl
rm
iam.d.ts
623
0644
edit
dl
rm
iam.js
1348
0644
edit
dl
rm
identitypoolclient.d.ts
3700
0644
edit
dl
rm
identitypoolclient.js
7567
0644
edit
dl
rm
idtokenclient.d.ts
896
0644
edit
dl
rm
idtokenclient.js
2088
0644
edit
dl
rm
impersonated.d.ts
3883
0644
edit
dl
rm
impersonated.js
5797
0644
edit
dl
rm
jwtaccess.d.ts
2409
0644
edit
dl
rm
jwtaccess.js
6987
0644
edit
dl
rm
jwtclient.d.ts
3833
0644
edit
dl
rm
jwtclient.js
9960
0644
edit
dl
rm
loginticket.d.ts
5367
0644
edit
dl
rm
loginticket.js
1768
0644
edit
dl
rm
oauth2client.d.ts
22189
0644
edit
dl
rm
oauth2client.js
30818
0644
edit
dl
rm
oauth2common.d.ts
3393
0644
edit
dl
rm
oauth2common.js
7734
0644
edit
dl
rm
refreshclient.d.ts
1675
0644
edit
dl
rm
refreshclient.js
4140
0644
edit
dl
rm
stscredentials.d.ts
4636
0644
edit
dl
rm
stscredentials.js
4886
0644
edit
dl
rm
Edit:
/var/www/qr4y.gr/server/delivery/node_modules/google-auth-library/build/src/auth/awsclient.d.ts
(4190B)
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; /** * 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); /** * 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<string>; /** * @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; }
Save
cmd:
run