Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 664 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 664 Bytes

aws-sdk-sso

SingleSignOnCredentials provider aws-sdk-js.

Usage

JavaScript Usage

const AWS = require("aws-sdk");
require("aws-sdk-sso");

AWS.config.credentialProvider.providers.push(new AWS.SingleSignOnCredentials());

TypeScript Usage

NOTE: Example uses esModuleInterop: true

import AWS from "aws-sdk";
import "aws-sdk-sso";
AWS.config.update({
  credentials: new AWS.SingleSignOnCredentials({ profile: "my-profile" }),
});

Known issues

Does not yet support browser redirect login. Please use 'aws sso login` first. This is in lieu of official support form AWS and shouldn't be used for cruical tasks.