Originally created by @k8ieone on GitHub (Jan 11, 2024).
Steps to reproduce
Use Authentik OIDC for authentication
Try logging in with the mobile app
"State parameter mismatch"
Expected behaviour
The user should be logged in.
Actual behaviour
The login fails and the web browser ends up on this page:
(up in the left corner)
Logging in to the web interface through OIDC works as expected. That's why I'm reporting this here.
Environment data
Audiobookshelf Version:
Android App 0.9.71-beta
Android Issue
Android version: 13
Device model: Wingtech T-Phone
Stock or customized system: Stock (pretty much vanilla Android)
Originally created by @k8ieone on GitHub (Jan 11, 2024).
### Steps to reproduce
1. Use Authentik OIDC for authentication
2. Try logging in with the mobile app
3. "State parameter mismatch"
### Expected behaviour
The user should be logged in.
### Actual behaviour
The login fails and the web browser ends up on this page:

(up in the left corner)

Logging in to the web interface through OIDC works as expected. That's why I'm reporting this here.
### Environment data
Audiobookshelf Version:
- Android App `0.9.71-beta`
#### Android Issue
Android version: 13
Device model: Wingtech T-Phone
Stock or customized system: Stock (pretty much vanilla Android)
adam
added the bug label 2026-04-24 23:39:58 +02:00
I still ended up on the "state parameter mismatch" page, but after tapping on "open", the app proceeded to log in.
Previous attempts resulted in the app either freezing or crashing.
I did not change anything about my setup, so I'm not sure why it works now.
@k8ieone commented on GitHub (Jan 14, 2024):
Update: I managed to log in today.
I still ended up on the "state parameter mismatch" page, but after tapping on "open", the app proceeded to log in.
Previous attempts resulted in the app either freezing or crashing.
I did not change anything about my setup, so I'm not sure why it works now.
I still ended up on the "state parameter mismatch" page, but after tapping on "open", the app proceeded to log in.
Previous attempts resulted in the app either freezing or crashing.
I did not change anything about my setup, so I'm not sure why it works now.
Thats weird. I suspect its something with the Browser on your Android because if you get the screen "Open in another App" it means the auth was successful. Maybe your browser reloads the page for a second time or so AND shows "Open in another app", which would lead to that kind of message you see in the background.
@Sapd commented on GitHub (Jan 24, 2024):
> Update: I managed to log in today.
>
> I still ended up on the "state parameter mismatch" page, but after tapping on "open", the app proceeded to log in.
>
> Previous attempts resulted in the app either freezing or crashing.
>
> I did not change anything about my setup, so I'm not sure why it works now.
Thats weird. I suspect its something with the Browser on your Android because if you get the screen "Open in another App" it means the auth was successful. Maybe your browser reloads the page for a second time or so AND shows "Open in another app", which would lead to that kind of message you see in the background.
@Sapd That could be it. Just for the record - the browser used here is Fennec.
I just tested again today. The "state parameter mismatch" page still loads, but the login succeeds after pressing "open".
@k8ieone commented on GitHub (Jan 30, 2024):
@Sapd That could be it. Just for the record - the browser used here is [Fennec](https://f-droid.org/packages/org.mozilla.fennec_fdroid/).
I just tested again today. The "state parameter mismatch" page still loads, but the login succeeds after pressing "open".
@Sapd I tested with Firefox and Chrome. Firefox has the same behavior.
Chrome went right back to the app after signing in to my IDP. This is how I think it should look.
So it looks like this is a Firefox-only issue (Fennec is a fork).
@k8ieone commented on GitHub (Feb 8, 2024):
@Sapd I tested with Firefox and Chrome. Firefox has the same behavior.
Chrome went right back to the app after signing in to my IDP. This is how I think it should look.
So it looks like this is a Firefox-only issue (Fennec is a fork).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @k8ieone on GitHub (Jan 11, 2024).
Steps to reproduce
Expected behaviour
The user should be logged in.
Actual behaviour
The login fails and the web browser ends up on this page:

(up in the left corner)
Logging in to the web interface through OIDC works as expected. That's why I'm reporting this here.
Environment data
Audiobookshelf Version:
0.9.71-betaAndroid Issue
Android version: 13
Device model: Wingtech T-Phone
Stock or customized system: Stock (pretty much vanilla Android)
@advplyr commented on GitHub (Jan 11, 2024):
What is the version of the server?
@k8ieone commented on GitHub (Jan 11, 2024):
@advplyr 2.7.1, brand new deployment.
@k8ieone commented on GitHub (Jan 14, 2024):
Update: I managed to log in today.
I still ended up on the "state parameter mismatch" page, but after tapping on "open", the app proceeded to log in.
Previous attempts resulted in the app either freezing or crashing.
I did not change anything about my setup, so I'm not sure why it works now.
@advplyr commented on GitHub (Jan 23, 2024):
I'm not sure either. Are you still having odd behavior?
@Sapd commented on GitHub (Jan 24, 2024):
Thats weird. I suspect its something with the Browser on your Android because if you get the screen "Open in another App" it means the auth was successful. Maybe your browser reloads the page for a second time or so AND shows "Open in another app", which would lead to that kind of message you see in the background.
@k8ieone commented on GitHub (Jan 30, 2024):
@Sapd That could be it. Just for the record - the browser used here is Fennec.
I just tested again today. The "state parameter mismatch" page still loads, but the login succeeds after pressing "open".
@advplyr commented on GitHub (Feb 3, 2024):
Have you tested with another browser?
@k8ieone commented on GitHub (Feb 5, 2024):
@advplyr No, but I can try. Which browsers should I test?
@Sapd commented on GitHub (Feb 5, 2024):
@k8ieone You can just try any on the device. Chrome or Firefox for example.
@k8ieone commented on GitHub (Feb 8, 2024):
@Sapd I tested with Firefox and Chrome. Firefox has the same behavior.
Chrome went right back to the app after signing in to my IDP. This is how I think it should look.
So it looks like this is a Firefox-only issue (Fennec is a fork).
@advplyr commented on GitHub (Mar 21, 2024):
I'm not sure if there is anything we can do about this. We aren't doing anything special but a redirect
@k8ieone commented on GitHub (Mar 23, 2024):
Since logging in works I think we can close this.