@mhlabs/aws-sso-client-auth
v1.1.4
Published
Helper library used for registering devices with AWS SSO
Downloads
22
Readme
aws-sso-client-auth
Description
Small client that registers a client with AWS SSO OIDC which is letting users register, authorize and acquire tokens which can be used for fetching temporary access keys.
The access keys are configured automatically on the AWS.config.credentials
object.
Installation
npm install --save @mhlabs/aws-sso-client-auth
Usage
const ssoAuth = require("@mhlabs/aws-sso-client-auth");
AWS.config.update({
credentials: await ssoAuth.requestAuth("client-name", awsProfile);
});