Earnest-Labs / aws-sts

Generation of AWS STS tokens via SAML authentication.
67 stars 18 forks source link

Updated to the latest AWS SDK (v3), fixed a race conditIon with Okta. #35

Open hoppersoft opened 1 year ago

hoppersoft commented 1 year ago

(src/index.js) Added durationSeconds argument to allow the user to specify a timeout

(src/providers/okta.js) Fixed a race condition with Okta where the password wasn't being submitted by adding a wait() like there is for username. Added the same for push verification for the same reason.

(src/providers/okta-mfa.js) Added a name property for debugging.

(package.json, src/token-getter.js) Fixed runtime warnings that the AWS SDK v2 was going into maintenance mode. Fixed "new Buffer()" being deprecated in favor of alloc. Added 'duration' argument, modified logic to detect multiple accounts having the same role name when only the role name is provided.

(Dockerfile) Updated base image to a more recent LTS version of node (v18)