tryretool / retool-cli

MIT License
20 stars 0 forks source link

Unable to login w/ 2FA enabled #19

Open dylan-apex opened 3 months ago

dylan-apex commented 3 months ago

When I run retool login and select "Google SSO" as the login method and after going through the Google authentication, I get this error in the command line: HTTP Request Error: { success: true, message: 'FIDO2 Not Setup' }

After I reset the 2FA in the admin panel and ran retool login again it worked without any issues.

Other notes

PeteTheHeat commented 3 months ago

Some clarifications:

This all correct?

I'm not sure why you hit this, haven't had other reports of this yet.

dylan-apex commented 3 months ago

Yeah that is correct. To clarify, by "reset" 2FA, I mean that I removed it entirely.

After going through Google OAuth signin, it opens up http://localhost:3020/auth with the access token and xsrf token as params, but the page is already unreachable. Going to the command line it says:

dylan@DESKTOP:~$ retool login
? How would you like to login? Log in using Google SSO in a web browser

HTTP Request Error: { success: true, message: 'FIDO2 Not Setup' }

Failed to make request to https://<domain>.retool.com/api/user.

I re-added my FIDO2 key and was able to recreate this after doing retool logout and retool login

aldegoeij commented 3 days ago

I have a similar error, have a user with no SSO or Google magical, just username + password + 2FA OTP

getting:

⠧ Verifying Retool DB credentials

HTTP Request Error: { success: true, message: '2FA Challenge' }

Failed to make request to https://space.org.retool.com/api/resources.