UrlSubjectTokenSupplier

UrlSubjectTokenSupplier

Internal subject token supplier implementation used when a URL is configured in the credential configuration used to build an IdentityPoolClient

Constructor

new UrlSubjectTokenSupplier(opts)

Instantiates a URL subject token supplier.

Parameters:
Name Type Description
opts

The URL subject token supplier options to build the supplier with.

Methods

(async) getSubjectToken(context)

Sends a GET request to the URL provided in the constructor and resolves with the returned external subject token.

Parameters:
Name Type Description
context

ExternalAccountSupplierContext from the calling IdentityPoolClient, contains the requested audience and subject token type for the external account identity. Not used.