We are trying to set up 2FA on our app based on the instructions provided here
The plugin/feature was installed from Marketplace
The Users table has the additional columns
When we try to register a user using the register endpoint of the UserService.
We get the following response
the transaction id is not present,
the twoFA_secret and twoFA_qrURL is null.
Only twoFactorAuthentication is set to true
Without these we cant proceed to the next step.
Request
Response
Instead of Registering with 2FA we also tried enabling 2FA for an existing user using the /enable2fa PUT method
In the response we get the totpQR_Path and totpSecretKey and adding the key to the Authenticator works.
There is no transaction id provided here which is as per your documentation. But the user record in the database still has twoFactorAuthentication = False
If we try to login as the user, the response does not have a transaction id that can use to carry out 2fa with the /auth POST endpoint as it requires the transaction id and the authenticator code.
We manually updated twoFactorAuthentication = True and tried to login again, it still does not provide a transaction id.
Hello ,
we are also facing same issue while register the new user.
i have added new column as requested in document twoFactorAuth twoFA_qrURL twoFA_secret
hello
Thank you it working in rest API call after changing the column name
but
I’m encountering an error during the login process in my .NET Core API. When I attempt to log in as a user with two-factor authentication (2FA) enabled, an error is thrown. Please review the attached screenshot for details.
i tried to down load new DLL and configured in my application but still getting same error
According to the provided documentation, the API methods for user registration and login are outlined as follows:
Backendless.Users.register
Backendless.Users.login
However, after configuring the .NET SDK and referencing the Backendless DLL in my project, I found that the access to these methods is structured differently. Instead of accessing Backendless.Users, I must use Backendless.UserService to perform actions as follows:
Backendless.UserService.Login
Backendless.UserService.Register
I wanted to confirm whether this difference is intentional or if there may be an issue with my configuration. Any guidance you can provide regarding this difference would be greatly appreciated.
public BackendlessUser Backendless.UserService.Register( BackendlessUser user );
Here the methods for registration and for login.
Maybe you are looking to a wrong sdk?
And another question, have you tried to call logout before login? Backendless.UserService.Logout();
The latest version at nuget: NuGet Gallery | Backendless.NET 6.7.1 - 6.7.1.
You can add with this line, or with interface in your IDE. dotnet add package Backendless.NET --version 6.7.1