nextcloud / talk-android

📱😀 Video & audio calls through Nextcloud on Android
Other
548 stars 246 forks source link

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

Open kezarjg opened 3 days ago

kezarjg commented 3 days ago

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 commented 3 days ago

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