leaf icon indicating copy to clipboard operation
leaf copied to clipboard

Leaf's being funky with Chrome and maintenance mode

Open artgoldberg opened this issue 2 years ago • 0 comments

Discussed in https://github.com/uwrit/leaf/discussions/554

Originally posted by artgoldberg August 9, 2022 Leaf's being funky with Chrome and maintenance mode.

Running Leaf 3.11, commit 6f06ef8acfbc6654b88e2ea5411d32af521bec78.

Although maintenance mode has worked previously for this release of Leaf, now it only works in incognito mode. I suspect that some state cached in the browser is messing it up.

What I want: put Leaf in maintenance mode and let admins use it.

What happens: when Leaf is in maintenance mode admins cannot login, unless they login in incognito mode.

Configuration: appsettings.json:

  "Authentication": {
    "Mechanism": "SAML2",
    "SessionTimeoutMinutes": 480,
    "InactivityTimeoutMinutes": 120,
    "Logout": {
      "Enabled": false,
      "URI": ""
    },
    "SAML2": {
      "Headers": {
        "ScopedIdentity": "nameID"
      }
    }
  },
  "Authorization": {
    "AllowAllAuthenticatedUsers": true,
    "Mechanism": "APPDB"
  }, ...

LeafDB content: UserRole (I also tried with IsIdentified = 0.) image ServerState image

Other configuration: nameID value for me provided by Shibboleth, SAML, and AAD: image

Although I'm an admin I cannot login: image

But when I try Chrome's incognito mode, I can and I'm an Admin: image

However, when I set IsUp = 1, and login not in incognito mode, I'm not an Admin: image

Thanks for all you do. Arthur

artgoldberg avatar Aug 24 '22 17:08 artgoldberg