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

Error parsing does not support mfa_token field when the error is a 403 mfa_required error #351

Open
6 tasks done
rmberg opened this issue Feb 19, 2024 · 0 comments
Open
6 tasks done
Labels
bug Something isn't working

Comments

@rmberg
Copy link

rmberg commented Feb 19, 2024

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of this SDK and the issue still persists.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

I am attempting to implement a backend call to OAuth.LoginWithPassword and when the error returned is an MFA required error, I don't have the ability to access the mfa_token returned in the error response. This is needed so that I can trigger the MFA challenge flow properly.

Expectation

The Error struct should support an MFAToken field

Reproduction

  1. Given a call to LoginWithPassword for a user that has MFA enabled
  2. an error is returned with status code 403 and error code mfa_required
  3. there is not a way to retrieve the mfa_token from the error response

Auth0 Go SDK version

v1.4.0

@rmberg rmberg added the bug Something isn't working label Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant