/
var
/
www
/
greso.tech
/
server
/
nsm
/
node_modules
/
google-auth-library
/
build
/
src
/
auth
/
/var/www/greso.tech/server/nsm/node_modules/google-auth-library/build/src/auth
mkdir
upload
Name
Size
Mode
Actions
authclient.d.ts
4204
0644
edit
dl
rm
authclient.js
2144
0644
edit
dl
rm
awsclient.d.ts
4441
0644
edit
dl
rm
awsclient.js
12190
0644
edit
dl
rm
awsrequestsigner.d.ts
1626
0644
edit
dl
rm
awsrequestsigner.js
9296
0644
edit
dl
rm
baseexternalclient.d.ts
9301
0644
edit
dl
rm
baseexternalclient.js
18085
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
executable-response.d.ts
4489
0644
edit
dl
rm
executable-response.js
6714
0644
edit
dl
rm
externalAccountAuthorizedUserClient.d.ts
3426
0644
edit
dl
rm
externalAccountAuthorizedUserClient.js
10155
0644
edit
dl
rm
externalclient.d.ts
1356
0644
edit
dl
rm
externalclient.js
2979
0644
edit
dl
rm
googleauth.d.ts
11626
0644
edit
dl
rm
googleauth.js
28883
0644
edit
dl
rm
iam.d.ts
623
0644
edit
dl
rm
iam.js
1348
0644
edit
dl
rm
identitypoolclient.d.ts
3692
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
4769
0644
edit
dl
rm
impersonated.js
6875
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
10050
0644
edit
dl
rm
loginticket.d.ts
5367
0644
edit
dl
rm
loginticket.js
1768
0644
edit
dl
rm
oauth2client.d.ts
22521
0644
edit
dl
rm
oauth2client.js
31312
0644
edit
dl
rm
oauth2common.d.ts
3377
0644
edit
dl
rm
oauth2common.js
7734
0644
edit
dl
rm
pluggable-auth-client.d.ts
5983
0644
edit
dl
rm
pluggable-auth-client.js
9926
0644
edit
dl
rm
pluggable-auth-handler.d.ts
1842
0644
edit
dl
rm
pluggable-auth-handler.js
6824
0644
edit
dl
rm
refreshclient.d.ts
1743
0644
edit
dl
rm
refreshclient.js
4231
0644
edit
dl
rm
stscredentials.d.ts
4636
0644
edit
dl
rm
stscredentials.js
4886
0644
edit
dl
rm
Edit:
/var/www/greso.tech/server/nsm/node_modules/google-auth-library/build/src/auth/impersonated.d.ts
(4769B)
/** * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { GetTokenResponse, OAuth2Client, RefreshOptions } from './oauth2client'; import { AuthClient } from './authclient'; import { IdTokenProvider } from './idtokenclient'; export interface ImpersonatedOptions extends RefreshOptions { /** * Client used to perform exchange for impersonated client. */ sourceClient?: AuthClient; /** * The service account to impersonate. */ targetPrincipal?: string; /** * Scopes to request during the authorization grant. */ targetScopes?: string[]; /** * The chained list of delegates required to grant the final access_token. */ delegates?: string[]; /** * Number of seconds the delegated credential should be valid. */ lifetime?: number | 3600; /** * API endpoint to fetch token from. */ endpoint?: string; } export declare const IMPERSONATED_ACCOUNT_TYPE = "impersonated_service_account"; export interface TokenResponse { accessToken: string; expireTime: string; } export interface FetchIdTokenOptions { /** * Include the service account email in the token. * If set to `true`, the token will contain `email` and `email_verified` claims. */ includeEmail: boolean; } export interface FetchIdTokenResponse { /** The OpenId Connect ID token. */ token: string; } export declare class Impersonated extends OAuth2Client implements IdTokenProvider { private sourceClient; private targetPrincipal; private targetScopes; private delegates; private lifetime; private endpoint; /** * Impersonated service account credentials. * * Create a new access token by impersonating another service account. * * Impersonated Credentials allowing credentials issued to a user or * service account to impersonate another. The source project using * Impersonated Credentials must enable the "IAMCredentials" API. * Also, the target service account must grant the orginating principal * the "Service Account Token Creator" IAM role. * * @param {object} options - The configuration object. * @param {object} [options.sourceClient] the source credential used as to * acquire the impersonated credentials. * @param {string} [options.targetPrincipal] the service account to * impersonate. * @param {string[]} [options.delegates] the chained list of delegates * required to grant the final access_token. If set, the sequence of * identities must have "Service Account Token Creator" capability granted to * the preceding identity. For example, if set to [serviceAccountB, * serviceAccountC], the sourceCredential must have the Token Creator role on * serviceAccountB. serviceAccountB must have the Token Creator on * serviceAccountC. Finally, C must have Token Creator on target_principal. * If left unset, sourceCredential must have that role on targetPrincipal. * @param {string[]} [options.targetScopes] scopes to request during the * authorization grant. * @param {number} [options.lifetime] number of seconds the delegated * credential should be valid for up to 3600 seconds by default, or 43,200 * seconds by extending the token's lifetime, see: * https://cloud.google.com/iam/docs/creating-short-lived-service-account-credentials#sa-credentials-oauth * @param {string} [options.endpoint] api endpoint override. */ constructor(options?: ImpersonatedOptions); /** * Refreshes the access token. * @param refreshToken Unused parameter */ protected refreshToken(refreshToken?: string | null): Promise<GetTokenResponse>; /** * Generates an OpenID Connect ID token for a service account. * * {@link https://cloud.google.com/iam/docs/reference/credentials/rest/v1/projects.serviceAccounts/generateIdToken Reference Documentation} * * @param targetAudience the audience for the fetched ID token. * @param options the for the request * @return an OpenID Connect ID token */ fetchIdToken(targetAudience: string, options?: FetchIdTokenOptions): Promise<string>; }
Save
cmd:
run