Socket
Socket
Sign inDemoInstall

@aws-sdk/token-providers

Package Overview
Dependencies
120
Maintainers
5
Versions
175
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @aws-sdk/token-providers

A collection of token providers


Version published
Weekly downloads
16M
decreased by-1.07%
Maintainers
5
Created
Weekly downloads
 

Changelog

Source

3.352.0 (2023-06-13)

Features

  • client-cloudtrail: This feature allows users to view dashboards for CloudTrail Lake event data stores. (bd2234a)
  • client-codeguru-security: Initial release of Amazon CodeGuru Security APIs (9d51aa1)
  • client-drs: Added APIs to support network replication and recovery using AWS Elastic Disaster Recovery. (8102bf6)
  • client-ec2: This release introduces a new feature, EC2 Instance Connect Endpoint, that enables you to connect to a resource over TCP, without requiring the resource to have a public IPv4 address. (c1ce7e1)
  • client-lightsail: This release adds pagination for the Get Certificates API operation. (5b99671)
  • client-s3: Integrate double encryption feature to SDKs. (55c2691)
  • client-securityhub: Add support for Security Hub Automation Rules (b511d0c)
  • client-simspaceweaver: This release fixes using aws-us-gov ARNs in API calls and adds documentation for snapshot APIs. (bf99f16)
  • client-verifiedpermissions: GA release of Amazon Verified Permissions. (84f48c1)
  • client-wafv2: You can now detect and block fraudulent account creation attempts with the new AWS WAF Fraud Control account creation fraud prevention (ACFP) managed rule group AWSManagedRulesACFPRuleSet. (4439cfd)
  • client-wellarchitected: AWS Well-Architected now supports Profiles that help customers prioritize which questions to focus on first by providing a list of prioritized questions that are better aligned with their business goals and outcomes. (775a51a)
  • clients: update command documentation examples as of 2023-06-13 (34ef217)

Readme

Source

@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);

cont 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.
cont ssoToken = await fromSso();

Token Provider Chain

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

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

Keywords

FAQs

Last updated on 13 Jun 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc