BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.49k stars 1.95k forks source link

Expired OIDC login button #5053

Closed thespad closed 5 months ago

thespad commented 5 months ago

Describe the Bug

Seems to be a recurrance of #4600

If you leave a browser tab logged into Bookstack via OIDC and then close the browser and return later after the session has expired - say the next day - when the page loads it will display the login page, but following the login link will result in a 419 - Page Expired error.

Manually refreshing the login page before clicking the login button works as expected.

Steps to Reproduce

Login to Bookstack via OIDC in a browser tab Close browser Reopen browser after login session has expired Navigate to Bookstack tab Click on OIDC Login button See 419 error

Expected Behaviour

Login button should work even if the page itself is stale, or at least fail in a more recoverable way than a full-page 419 error.

Screenshots or Additional Context

No response

Browser Details

Firefox 126.0.1 (64-bit) on Windows 10

Exact BookStack Version

v24.05.1

thespad commented 5 months ago

I can't reliably replicate this so I'm going to close it. If I can figure out the trigger I'll open with more details.