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

"State token does not match" error when using OpenID Provider #4387

Open
kezarjg opened this issue Oct 26, 2024 · 1 comment
Open

"State token does not match" error when using OpenID Provider #4387

kezarjg opened this issue Oct 26, 2024 · 1 comment
Labels
0. Needs triage bug Something isn't working

Comments

@kezarjg
Copy link

kezarjg commented Oct 26, 2024

Steps to reproduce

  1. Open the Nextcloud Talk app on an Android device.
  2. Select "Log in" and proceed to the OpenID Provider login page.
  3. Complete the OpenID Provider authentication steps as prompted.

Expected behaviour

Upon successfully authenticating with the OpenID Provider, the user should be seamlessly redirected back to the Nextcloud Talk app and logged in without any error messages. The session should begin with full access to Nextcloud Talk features, similar to the experience when logging in with a local Nextcloud account.

Actual behaviour

After completing authentication with the OpenID Provider, the following error message appears: "State token does not match." The login process fails, and the user is not logged into the Nextcloud Talk app.

Device brand and model

Google Pixel 7 Pro

Android version

14

Nextcloud Talk app version

20.0.2

Nextcloud server version

30.0.1

Talk version

20.0.1

Custom Signaling server configured

None

Custom TURN server configured

Yes

Custom STUN server configured

Yes

Android logs

No response

Server log

No response

Additional information

This "State token does not match" error also occurs when attempting to log in with an OpenID Provider in the main Nextcloud Android app. However, logging in via a web browser using the same OpenID Provider works without issues, and no error message is encountered. The OpenID Provider in use is Authentik.

@kezarjg kezarjg added 0. Needs triage bug Something isn't working labels Oct 26, 2024
@kezarjg
Copy link
Author

kezarjg commented Oct 26, 2024

nextcloud.log
The server log was too large to past into the bug report. I enabled debug logging and captured the attached attempt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant