Issue with API Login Using Two-Factor Authentication

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sapyantuk
    Senior Member
    • Oct 2020
    • 265

    Issue with API Login Using Two-Factor Authentication

    Hello Espo Team,I am facing an issue with logging into my CRM through the API. I have reviewed the documentation and successfully made a GET request to the CRM using basic authentication. Up to this point, everything works fine.However, I encounter a problem when two-factor authentication (2FA) is enabled. When I send a GET request to the user with basic authentication, I receive the two-factor authentication code. The issue arises once I have the OTP (one-time password) – I am unsure how to send the OTP via the API to complete the login process.Could you please assist me with this?Thank you.
  • yuri
    Member
    • Mar 2014
    • 8527

    #2
    You can see what request is sent when you are logging in with 2FA code from the UI. F12 > Network in the browser. Note that API Users don't support 2FA, hence we have not documented it.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...