2 Factor Authentication token expiration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mark
    Senior Member
    • Dec 2019
    • 143

    2 Factor Authentication token expiration

    Hi, wanted to ask a question regarding auth token expiration. Currently we have the "Token Max Idle Time (hours)" set to '12', as I understand this should automatically log out a user that has been idle for 12 hours and ask him to authenticate again? Or does this mean something different?
    Click image for larger version

Name:	image.png
Views:	321
Size:	94.0 KB
ID:	88592
  • lazovic
    Super Moderator
    • Jan 2022
    • 810

    #2
    Hi Mark,

    Auth Token Lifetime parameter defines how long tokens can exist at all.​
    Auth Token Max Idle Time parameter defines how long since the last access tokens can exist.

    Keep in mind that this applies to any authentication in EspoCRM and does not depend on the two-factor authentication settings.

    Comment

    • Mark
      Senior Member
      • Dec 2019
      • 143

      #3
      okay, so in theory if "Auth Token Max Idle Time (hours)" set to '12' and a user has left a tab with the CRM open on his computer, but has not made any activity, he would automatically be logged out after 12hours right?

      Comment


      • Mark
        Mark commented
        Editing a comment
        is it possible to disable these automatic requests for fetching the notifications?

      • yuri
        yuri commented
        Editing a comment
        By configuring websocket.

      • Mark
        Mark commented
        Editing a comment
        We can't configure the websocket due to permission limitations with our hosting provider. Maybe there is a way to just disable the functionality that makes the automatic requests? It would be okay for us if the notifications and etc. are not being synced automatically in the background
    • yuri
      Member
      • Mar 2014
      • 8453

      #4
      Add to data/config.php

      'notificationsCheckInterval ' => 1000000,
      'popupNotificationsCheckInterval' => 1000000,

      It's a value in seconds. Maybe it will do the trick.
      Last edited by yuri; 03-03-2023, 09:31 AM.
      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


      • yuri
        yuri commented
        Editing a comment
        The max supported by browsers value is 2147483, which is 24 days.
    Working...