Inconsistent mod_auth_openidc behavior: 401 without redirect after session idle #1190
Unanswered
phoecouscousfa
asked this question in
Q&A
Replies: 1 comment 1 reply
-
iframes or XHR request will not (and should not) be redirected, see: https://github.com/OpenIDC/mod_auth_openidc/wiki/Sessions-and-Timeouts#single-page-applications |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We're encountering an issue with users receiving a 401 without being redirected to the login screen of the identity provider when they have previously been logged in and then try to access the service again after a period of inactivity.
Apache Configuration:
Here's a relevant section of our Apache configuration using mod_auth_openidc:
Expected Behavior:
According to the mod_auth_openidc documentation, any unauthenticated request should be redirected to the identity provider for login.
Observed Behavior:
While authentication works perfectly upon initial login, there's inconsistent behavior after a session is idle for some time:
Troubleshooting Steps:
OIDCRefreshAccessTokenBeforeExpiry 240 logout_on_error
directive (our access token expires in 300)OIDCUnAuthAction
toauth
mod_auth_openidc_session
cookie is null. However I would still think that an invalid session cookie should causemod_auth_openidc
to redirect the user to the identity provider.Request Logs:
Any insights or suggestions to diagnose and resolve this issue would be greatly appreciated, thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions