Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PWM 2.0.6 and 2.0.7 - Error "The browser session is invalid or has expired. Please try again." #712

Closed
quibueno opened this issue Feb 19, 2025 · 1 comment

Comments

@quibueno
Copy link

We are experiencing authentication errors in PWM service in some specific cases, but we have not yet identified the exact trigger for the issue. The error occurs for some users, without a clear pattern.

When trying to login, they're getting the following error message:
"The browser session is invalid or has expired. Please try again."

PWM logs (debug mode):

2025-02-18T14:45:17Z, ERROR, http.PwmResponse, {jtjQJ} 5034 ERROR_INVALID_FORMID (form nonce missing) [192.xx.xx.xx]
2025-02-18T15:04:54Z, FATAL, servlet.AbstractPwmServlet, {iHNj8} unexpected error: 5034 ERROR_INVALID_FORMID (form nonce incorrect) [192.xx.xx.xx]

In our test environment, we are using Chrome version 133.0.6943.98 (Official Build) (64-bit). Right now, the error is happening in my machine, so it's easy to reproduce it.

Here are some additional notes:

We use nginx in front of PWM
The error never happens in Firefox browser, just in Chrome and Safari (and just for some users, not all).
If the user uses a cognito window in chrome/safari, the error never happens.
If We disable "Enable From Nonce" in PWM Settings, the error never happens.

We don't want to disable "Form Nonce" due to security concerns.

Any help would be appreciated

@jrivard
Copy link
Contributor

jrivard commented Feb 19, 2025

Duplicate of #711. Please re-open if the workaround in #711 doesn't resolve the issue.

@jrivard jrivard closed this as completed Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants