You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Auth0 SDK cannot desterilize the JSON response from the following API call:
API Call: https://dev-nextech.us.auth0.com/api/v2/users?q=identities.connection%3A%22Username-Password-Authentication%22%20AND%20email%3A%22b.boone%40mailinator.com%22&search_engine=v3
According to the Management API docs "multifactor" is indeed just a list of strings and we do not expect it to be otherwise.. The Auth0 SDK does handle when the "multifactor" is a list of strings.
We are not able to reproduce a response where the "multifactor" is not a list of strings (but a nested list as shown above).
Can you confirm if you are still seeing this behaviour / Or help us with how we can reproduce this to assist better?
You would be able to reproduce in the onExecutePostLogin as described above, by passing in erroneous data to the api.multifactor.enable method. If in your testing, the method (and underlying API) no longer accepts erroneous values, then this is likely resolved (see https://support.auth0.com/tickets/02352938 if you have access). I do not wish to test it myself in my own environments as the erronous users are unrecoverable without a ticket to Auth0.
Checklist
Description
The Auth0 SDK cannot desterilize the JSON response from the following API call:
API Call:
https://dev-nextech.us.auth0.com/api/v2/users?q=identities.connection%3A%22Username-Password-Authentication%22%20AND%20email%3A%22b.boone%40mailinator.com%22&search_engine=v3
Response:
Specifically, Newtonsoft Json cannot deserialize the following portion:
Example usage
Stack Trace:
According to the Managemen API documentation, multifactor should be a list of
string: []
and should not contain a nested array.Reproduction
We traced the cause to our implementation of MFA in a
onExecutePostLogin
flow.The call to enable MFA temporarily had the incorrect values:
And was changed to:
It seems the api.multifactor.enable method is not validating the parameters sent to it.
Additional context
No response
auth0.net version
7.26.2
.NET version
6
The text was updated successfully, but these errors were encountered: