@aws-sdk/token-providers
A collection of token providers
Last updated 8 months ago by aws-sdk-bot .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @aws-sdk/token-providers 
SYNC missed versions from official npm registry.

@aws-sdk/token-providers

NPM version NPM downloads

A collection of all token providers. The token providers should be used when the authorization type is going to be token based. For example, the bearer authorization type set using httpBearerAuth trait in Smithy.

Static Token Provider

import { fromStatic } from "@aws-sdk/token-providers";

const token = { token: "TOKEN" };
const staticTokenProvider = fromStatic(token);

const staticToken = await staticTokenProvider(); // returns { token: "TOKEN" }

SSO Token Provider

import { fromSso } from "@aws-sdk/token-providers";

// returns token from SSO token cache or ssoOidc.createToken() call.
const ssoToken = await fromSso();

Token Provider Chain

import { nodeProvider } from "@aws-sdk/token-providers";

// returns token from default providers.
const token = await nodeProvider();

Development

This package contains a minimal copy of the SSO OIDC client, instead of relying on the full client, which would cause a circular dependency.

When regenerating the bundled version of the SSO OIDC client, run the esbuild.js script and then make the following changes:

  • Remove any dependency of the generated client on the credential chain such that it would create a circular dependency back to this package. Because we only need the CreateTokenCommand, the client, and this command's associated Exceptions, it is possible to remove auth dependencies.
  • Ensure all required packages are declared in the package.json of token-providers.

Current Tags

  • 3.699.0                                ...           latest (a month ago)

191 Versions

  • 3.699.0                                ...           a month ago
  • 3.696.0                                ...           a month ago
  • 3.693.0                                ...           a month ago
  • 3.692.0                                ...           a month ago
  • 3.691.0                                ...           a month ago
  • 3.686.0                                ...           2 months ago
  • 3.679.0                                ...           2 months ago
  • 3.667.0                                ...           3 months ago
  • 3.664.0                                ...           3 months ago
  • 3.662.0                                ...           3 months ago
  • 3.654.0                                ...           3 months ago
  • 3.649.0                                ...           3 months ago
  • 3.614.0                                ...           5 months ago
  • 3.609.0                                ...           6 months ago
  • 3.598.0                                ...           6 months ago
  • 3.587.0                                ...           7 months ago
  • 3.577.0                                ...           7 months ago
  • 3.575.0                                ...           7 months ago
  • 3.572.0                                ...           8 months ago
  • 3.568.0                                ...           8 months ago
  • 3.567.0                                ...           8 months ago
  • 3.565.0                                ...           8 months ago
  • 3.564.0                                ...           8 months ago
  • 3.556.0                                ...           8 months ago
  • 3.554.0                                ...           8 months ago
  • 3.552.0                                ...           9 months ago
  • 3.549.0                                ...           9 months ago
  • 3.540.0                                ...           9 months ago
  • 3.535.0                                ...           9 months ago
  • 3.533.0                                ...           9 months ago
  • 3.529.1                                ...           10 months ago
  • 3.529.0                                ...           10 months ago
  • 3.525.0                                ...           10 months ago
  • 3.523.0                                ...           10 months ago
  • 3.521.0                                ...           10 months ago
  • 3.515.0                                ...           10 months ago
  • 3.513.0                                ...           10 months ago
  • 3.511.0                                ...           a year ago
  • 3.507.0                                ...           a year ago
  • 3.504.0                                ...           a year ago
  • 3.502.0                                ...           a year ago
  • 3.501.0                                ...           a year ago
  • 3.496.0                                ...           a year ago
  • 3.495.0                                ...           a year ago
  • 3.489.0                                ...           a year ago
  • 3.485.0                                ...           a year ago
  • 3.484.0                                ...           a year ago
  • 3.481.0                                ...           a year ago
  • 3.478.0                                ...           a year ago
  • 3.470.0                                ...           a year ago
  • 3.468.0                                ...           a year ago
  • 3.465.0                                ...           a year ago
  • 3.460.0                                ...           a year ago
  • 3.451.0                                ...           a year ago
  • 3.449.0                                ...           a year ago
  • 3.438.0                                ...           a year ago
  • 3.437.0                                ...           a year ago
  • 3.435.0                                ...           a year ago
  • 3.433.0                                ...           a year ago
  • 3.431.0                                ...           a year ago
  • 3.430.0                                ...           a year ago
  • 3.429.0                                ...           a year ago
  • 3.428.0                                ...           a year ago
  • 3.427.0                                ...           a year ago
  • 3.425.0                                ...           a year ago
  • 3.418.0                                ...           a year ago
  • 3.413.0                                ...           a year ago
  • 3.410.0                                ...           a year ago
  • 3.408.0                                ...           a year ago
  • 3.405.0                                ...           a year ago
  • 3.398.0                                ...           a year ago
  • 3.391.0                                ...           a year ago
  • 3.388.0                                ...           a year ago
  • 3.387.0                                ...           a year ago
  • 3.386.0                                ...           a year ago
  • 3.385.0                                ...           a year ago
  • 3.382.0                                ...           a year ago
  • 3.379.1                                ...           a year ago
  • 3.378.0                                ...           a year ago
  • 3.370.0                                ...           a year ago
  • 3.369.0                                ...           a year ago
  • 3.363.0                                ...           a year ago
  • 3.362.0                                ...           a year ago
  • 3.360.0                                ...           a year ago
  • 3.358.0                                ...           2 years ago
  • 3.357.0                                ...           2 years ago
  • 3.354.0                                ...           2 years ago
  • 3.353.0                                ...           2 years ago
  • 3.352.0                                ...           2 years ago
  • 3.350.0                                ...           2 years ago
  • 3.348.0                                ...           2 years ago
  • 3.347.0                                ...           2 years ago
  • 3.345.0                                ...           2 years ago
  • 3.344.0                                ...           2 years ago
  • 3.342.0                                ...           2 years ago
  • 3.341.0                                ...           2 years ago
  • 3.338.0                                ...           2 years ago
  • 3.337.0                                ...           2 years ago
  • 3.335.0                                ...           2 years ago
  • 3.332.0                                ...           2 years ago
  • 3.329.0                                ...           2 years ago
  • 3.328.0                                ...           2 years ago
  • 3.327.0                                ...           2 years ago
  • 3.326.0                                ...           2 years ago
  • 3.325.0                                ...           2 years ago
  • 3.321.1                                ...           2 years ago
  • 3.319.0                                ...           2 years ago
  • 3.316.0                                ...           2 years ago
  • 3.315.0                                ...           2 years ago
  • 3.310.0                                ...           2 years ago
  • 3.309.0                                ...           2 years ago
  • 3.306.0                                ...           2 years ago
  • 3.303.0                                ...           2 years ago
  • 3.301.0                                ...           2 years ago
  • 3.300.0                                ...           2 years ago
  • 3.299.0                                ...           2 years ago
  • 3.298.0                                ...           2 years ago
  • 3.297.0                                ...           2 years ago
  • 3.296.0                                ...           2 years ago
  • 3.295.0                                ...           2 years ago
  • 3.294.0                                ...           2 years ago
  • 3.293.0                                ...           2 years ago
  • 3.292.0                                ...           2 years ago
  • 3.290.0                                ...           2 years ago
  • 3.289.0                                ...           2 years ago
  • 3.288.0                                ...           2 years ago
  • 3.287.0                                ...           2 years ago
  • 3.282.0                                ...           2 years ago
  • 3.281.0                                ...           2 years ago
  • 3.279.0                                ...           2 years ago
  • 3.278.0                                ...           2 years ago
  • 3.272.0                                ...           2 years ago
  • 3.271.0                                ...           2 years ago
  • 3.267.0                                ...           2 years ago
  • 3.266.1                                ...           2 years ago
  • 3.266.0                                ...           2 years ago
  • 3.264.0                                ...           2 years ago
  • 3.261.0                                ...           2 years ago
  • 3.259.0                                ...           2 years ago
  • 3.258.0                                ...           2 years ago
  • 3.257.0                                ...           2 years ago
  • 3.256.0                                ...           2 years ago
  • 3.254.0                                ...           2 years ago
  • 3.252.0                                ...           2 years ago
  • 3.245.0                                ...           2 years ago
  • 3.241.0                                ...           2 years ago
  • 3.238.0                                ...           2 years ago
  • 3.236.0                                ...           2 years ago
  • 3.235.0                                ...           2 years ago
  • 3.234.0                                ...           2 years ago
  • 3.231.0                                ...           2 years ago
  • 3.229.0                                ...           2 years ago
  • 3.226.0                                ...           2 years ago
  • 3.224.0                                ...           2 years ago
  • 3.223.0                                ...           2 years ago
  • 3.222.0                                ...           2 years ago
  • 3.216.0                                ...           2 years ago
  • 3.215.0                                ...           2 years ago
  • 3.212.0                                ...           2 years ago
  • 3.211.0                                ...           2 years ago
  • 3.210.0                                ...           2 years ago
  • 3.209.0                                ...           2 years ago
  • 3.208.0                                ...           2 years ago
  • 3.204.0                                ...           2 years ago
  • 3.202.0                                ...           2 years ago
  • 3.201.0                                ...           2 years ago
  • 3.200.0                                ...           2 years ago
  • 3.199.0                                ...           2 years ago
  • 3.198.0                                ...           2 years ago
  • 3.197.0                                ...           2 years ago
  • 3.196.0                                ...           2 years ago
  • 3.193.0                                ...           2 years ago
  • 3.190.0                                ...           2 years ago
  • 3.188.0                                ...           2 years ago
  • 3.186.0                                ...           2 years ago
  • 3.185.0                                ...           2 years ago
  • 3.183.0                                ...           2 years ago
  • 3.182.0                                ...           2 years ago
  • 3.181.0                                ...           2 years ago
  • 3.180.0                                ...           2 years ago
  • 3.178.0                                ...           2 years ago
  • 3.171.0                                ...           2 years ago
  • 3.170.0                                ...           2 years ago
  • 3.169.0                                ...           2 years ago
  • 3.168.0                                ...           2 years ago
  • 3.165.0                                ...           2 years ago
  • 3.163.0                                ...           2 years ago
  • 3.162.0                                ...           2 years ago
  • 3.161.0                                ...           2 years ago
  • 3.160.0                                ...           2 years ago
  • 3.159.0                                ...           2 years ago
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (6)

© 2010 - cnpmjs.org x YWFE | Home | YWFE