On Grafana service restart does not kill browser session with Oauth with keycloak

  • What Grafana version and what operating system are you using?
    10.0.0
  • What are you trying to achieve?
    Expected the Grafana session to be logged out and prompt for login screen again.on restart of service or reboot of system.
  • How are you trying to achieve it?
    1.Login to Grafana UI
    2.Restart Grafana service from windows services
  1. Go to earlier logged in Grafana UI
  • What happened?
    I restarted Grafana service in windows ,but the Grafana session was not killed/logged out…
    Even with inbuild Grafana login mechanism we have same issue

  • What did you expect to happen?
    Expected the Grafana session to be logged out and prompt for login screen again.

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

No

  • Did you follow any online instructions? If so, what is the URL?

Did not find any

You need to understand that this is not only about Grafana session, but also IDP session is involved. If you don’t kill IDP session or if IDP session is not expired then your IDP will process login procedure without asking for a password.
That’s not an Grafana issue, but how your IDP is configured (how long is access/refresh token or IDP session valid).