Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/client-sso

Package Overview
Dependencies
Maintainers
5
Versions
368
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-sso

AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native

  • 3.211.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18M
decreased by-17.1%
Maintainers
5
Weekly downloads
 
Created

What is @aws-sdk/client-sso?

The @aws-sdk/client-sso package is a client library for AWS Single Sign-On (SSO) that allows developers to interact with the AWS SSO service programmatically. It provides methods to manage SSO access to AWS accounts and applications, retrieve user credentials, and manage SSO sessions.

What are @aws-sdk/client-sso's main functionalities?

GetRoleCredentials

This feature allows you to retrieve the temporary credentials for an AWS role that the user has access to through AWS SSO.

const { SSOClient, GetRoleCredentialsCommand } = require('@aws-sdk/client-sso');
const client = new SSOClient({ region: 'us-west-2' });
const command = new GetRoleCredentialsCommand({
  accountId: '123456789012',
  roleName: 'MyRoleName',
  accessToken: 'myAccessToken'
});
client.send(command).then((data) => {
  console.log(data.roleCredentials);
});

ListAccounts

This feature lists all AWS accounts assigned to the user through AWS SSO.

const { SSOClient, ListAccountsCommand } = require('@aws-sdk/client-sso');
const client = new SSOClient({ region: 'us-west-2' });
const command = new ListAccountsCommand({
  accessToken: 'myAccessToken'
});
client.send(command).then((data) => {
  console.log(data.accountList);
});

Logout

This feature logs the user out of all AWS SSO sessions.

const { SSOClient, LogoutCommand } = require('@aws-sdk/client-sso');
const client = new SSOClient({ region: 'us-west-2' });
const command = new LogoutCommand({
  accessToken: 'myAccessToken'
});
client.send(command).then(() => {
  console.log('Successfully logged out');
});

Other packages similar to @aws-sdk/client-sso

FAQs

Package last updated on 15 Nov 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc