-
Notifications
You must be signed in to change notification settings - Fork 25
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
two factor authentication login #31
Comments
Hi @xu4wang, Good question, but not something I have knowledge of. Rocket.Chat documentation talks about this but I use a different method so it isn't something I've needed to worry about: https://rocket.chat/docs/developer-guides/two-factor/rest-api/ and https://rocket.chat/docs/developer-guides/two-factor/ In short it looks like it is expecting two extra headers. I see two options:
Or something like that. But it'd also need some news tests to validate it, and it'd be good to have it validated against a real Rocket.Chat instance. |
thank @abrom for quick update and the candidate solutions. I will evaluate the two options later. |
Do you have any update on this? This makes this gem pretty useless as TOTP is not disableable for new users. It is for admin tho with this ENV Accounts_TwoFactorAuthentication_Enforce_Password_Fallback set to false. |
Not since my last reply. I listed two different ways that you can authenticate against a system with 2 factor. From your comment it would seem likely you'd want the second option. I've listed the code that should allow for 2 factor. If you are able to test that it works, and can put together a PR to include it in the gem, I'd be more than happy to take a look |
Any update on testing the proposed change @julienchabanon or @xu4wang ? |
If someone will need solution - you could create personal token in rocket chat and use it to get session
|
My rocket chat server is always asking for an OTP from my email during the log in process.
How should I use the authentication API
for log in?
BR,Austin
The text was updated successfully, but these errors were encountered: