brianfoody-aws-sso-sdk-v3
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

AWS SSO Authorisation Wrapper

Utility library that allows for easily refreshing AWS SSO sessions and fetching SDK access tokens using them.

It reads existing sessons from AWS cache locaton and writes new sessons back to there to integrate with other AWS tools

AWS Client

You can create an AWS client easily. All you need to pass in is the home directory locaton and a utilty to open a browser window.

This makes it easy to use between web, mobile, electon and local scripts.

const authoriser = makeSsoAuthoriser({
  configManager: makeAwsConfigManager({
    homeDir: os.homedir(),
  }),
  browser: {
    open: async (url) => {
      await open(url);
    },
  },
});

SSO Aware

The SDK is immediately aware of your SSO access by reading your /.aws/sso/cache/*.json file.

Readme

Keywords

none

Package Sidebar

Install

npm i brianfoody-aws-sso-sdk-v3

Weekly Downloads

1

Version

1.0.4

License

Apache-2.0

Unpacked Size

58.9 kB

Total Files

39

Last publish

Collaborators

  • brianfoody