Skip to content

rrrix/aws-sdk-sso

 
 

Repository files navigation

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.

About

AWS SSO support for aws-sdk-js

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 77.7%
  • TypeScript 22.3%