audiobookshelf-app
audiobookshelf-app copied to clipboard
OIDC Authentication fails with "state parameter mismatch"
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)
What is the version of the server?
@advplyr 2.7.1, brand new deployment.
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'm not sure either. Are you still having odd behavior?
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".
Have you tested with another browser?
@advplyr No, but I can try. Which browsers should I test?
@k8ieone You can just try any on the device. Chrome or Firefox for example.
@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).
I'm not sure if there is anything we can do about this. We aren't doing anything special but a redirect
Since logging in works I think we can close this.