User activity and inactivity

  • What Grafana version and what operating system are you using?
    v9.1.5 (df015a9301) - AlmaLinux
  • What are you trying to achieve?
    User to be logged out after 5mins if inactivity or stay logged in if actively using
  • How are you trying to achieve it?
    Via grafana.ini
  • What happened?
    Inactivity =< Token Rotation
    Token expires and user will be logged out regardless of activity/inactivity
    Token Rotation =< Inactivity
    Token rotates before expiring, does not log out user if inactive
  • What did you expect to happen?
    User to be logged out after 5mins if inactivity or stay logged in if actively using
  • Can you copy/paste the configuration(s) that you are having problems with?
    grafana.ini

Authentication

[auth]
disable_login_form = False
disable_signout_menu = False
login_maximum_inactive_lifetime_duration = 5m
token_rotation_interval_minutes = 3
[auth.ldap]
enabled = True
config_file = /etc/grafana/ldap.toml
allow_sign_up = True
[auth.basic]
enabled = True

1 Like

So it seems that the auto refresh will trigger the token rotation if both are less than the inactivity interval. You will be logged out if the auto refresh interval is longer than the inactivity interval…