/
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/stscredentials.d.ts
(5261B)
import { GaxiosResponse } from 'gaxios'; import { HeadersInit } from './authclient'; import { ClientAuthentication, OAuthClientAuthHandler, OAuthClientAuthHandlerOptions } from './oauth2common'; /** * Defines the interface needed to initialize an StsCredentials instance. * The interface does not directly map to the spec and instead is converted * to be compliant with the JavaScript style guide. This is because this is * instantiated internally. * StsCredentials implement the OAuth 2.0 token exchange based on * https://tools.ietf.org/html/rfc8693. * Request options are defined in * https://tools.ietf.org/html/rfc8693#section-2.1 */ export interface StsCredentialsOptions { /** * REQUIRED. The value "urn:ietf:params:oauth:grant-type:token-exchange" * indicates that a token exchange is being performed. */ grantType: string; /** * OPTIONAL. A URI that indicates the target service or resource where the * client intends to use the requested security token. */ resource?: string; /** * OPTIONAL. The logical name of the target service where the client * intends to use the requested security token. This serves a purpose * similar to the "resource" parameter but with the client providing a * logical name for the target service. */ audience?: string; /** * OPTIONAL. A list of space-delimited, case-sensitive strings, as defined * in Section 3.3 of [RFC6749], that allow the client to specify the desired * scope of the requested security token in the context of the service or * resource where the token will be used. */ scope?: string[]; /** * OPTIONAL. An identifier, as described in Section 3 of [RFC8693], eg. * "urn:ietf:params:oauth:token-type:access_token" for the type of the * requested security token. */ requestedTokenType?: string; /** * REQUIRED. A security token that represents the identity of the party on * behalf of whom the request is being made. */ subjectToken: string; /** * REQUIRED. An identifier, as described in Section 3 of [RFC8693], that * indicates the type of the security token in the "subject_token" parameter. */ subjectTokenType: string; actingParty?: { /** * OPTIONAL. A security token that represents the identity of the acting * party. Typically, this will be the party that is authorized to use the * requested security token and act on behalf of the subject. */ actorToken: string; /** * An identifier, as described in Section 3, that indicates the type of the * security token in the "actor_token" parameter. This is REQUIRED when the * "actor_token" parameter is present in the request but MUST NOT be * included otherwise. */ actorTokenType: string; }; } /** * Defines the OAuth 2.0 token exchange successful response based on * https://tools.ietf.org/html/rfc8693#section-2.2.1 */ export interface StsSuccessfulResponse { access_token: string; issued_token_type: string; token_type: string; expires_in?: number; refresh_token?: string; scope?: string; res?: GaxiosResponse | null; } export interface StsCredentialsConstructionOptions extends OAuthClientAuthHandlerOptions { /** * The client authentication credentials if available. */ clientAuthentication?: ClientAuthentication; /** * The token exchange endpoint. */ tokenExchangeEndpoint: string | URL; } /** * Implements the OAuth 2.0 token exchange based on * https://tools.ietf.org/html/rfc8693 */ export declare class StsCredentials extends OAuthClientAuthHandler { #private; /** * Initializes an STS credentials instance. * * @param options The STS credentials instance options. Passing an `tokenExchangeEndpoint` directly is **@DEPRECATED**. * @param clientAuthentication **@DEPRECATED**. Provide a {@link StsCredentialsConstructionOptions `StsCredentialsConstructionOptions`} object in the first parameter instead. */ constructor(options?: StsCredentialsConstructionOptions | string | URL, /** * @deprecated - provide a {@link StsCredentialsConstructionOptions `StsCredentialsConstructionOptions`} object in the first parameter instead */ clientAuthentication?: ClientAuthentication); /** * Exchanges the provided token for another type of token based on the * rfc8693 spec. * @param stsCredentialsOptions The token exchange options used to populate * the token exchange request. * @param additionalHeaders Optional additional headers to pass along the * request. * @param options Optional additional GCP-specific non-spec defined options * to send with the request. * Example: `&options=${encodeUriComponent(JSON.stringified(options))}` * @return A promise that resolves with the token exchange response containing * the requested token and its expiration time. */ exchangeToken(stsCredentialsOptions: StsCredentialsOptions, headers?: HeadersInit, options?: Parameters<JSON['stringify']>[0]): Promise<StsSuccessfulResponse>; }
Save
cmd:
run