Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OTP (Software MFA Token) Support. #220

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

Xtendera
Copy link
Contributor

@Xtendera Xtendera commented Jan 6, 2025

Issue #, if available:
N/A
Description of changes:
I added support for the SOFTWARE_TOKEN_MFA authentication mode for plaintext authentication and SRP authentication. This was specific to our use-case, but I believe it is a helpful addition so I am making an upstream PR.

This is my first contribution to this AWS repository, so please let me know if I need to make additional changes.

The exact changes are as follows:

  • Added a otpMfaCode parameter to the authenticateWithPlaintextPassword and authenticateWithSrp functions.
  • Added support for the SOFTWARE_TOKEN_MFA challenge.

This change was made as part of the ĀYŌDÈ organization.

Testing:
I tested both the plaintext authentication and srp authentication modes with the OTP authentication callback. I also ran eslint and prettier on the codebase.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ottokruse
Copy link
Contributor

Awesome! 👏

Copy link
Contributor

@ottokruse ottokruse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ottokruse ottokruse merged commit 85cdf58 into aws-samples:main Jan 7, 2025
1 check passed
@ottokruse
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants