OIDC login work correctly on any web browser
When trying to connect to the server on the android App, i get the following error :
SSO error: Cannot set properties of undefined (setting 'accessToken')
Steps to Reproduce the Issue
Open the app - connect to the server - click on the button for login via OIDC - connect to authelia -> App print error
I've tried with version 0.10.1 and 0.10.0 of the app, still the same issue
What was Expected?
Connection to the mobile app via OIDC
Phone Model
Samsung A34
Phone OS
Android
Audiobookshelf App Version
Android App - 0.10.1
Installation Source
Google Play Store
Additional Notes
What i don't understand is that if i check the server logs, i'm correctly connected.
``2025-11-04 19:39:46.580
Originally created by @JukyJukz on GitHub (Nov 4, 2025).

### I have verified that the [bug is not already awaiting release](https://github.com/advplyr/audiobookshelf-app/issues?q=is%3Aissue%20label%3A%22awaiting%20release%22)
Yes
### What was the Problem?
OIDC login work correctly on any web browser
When trying to connect to the server on the android App, i get the following error :
> SSO error: Cannot set properties of undefined (setting 'accessToken')
### Steps to Reproduce the Issue
Open the app - connect to the server - click on the button for login via OIDC - connect to authelia -> App print error
I've tried with version 0.10.1 and 0.10.0 of the app, still the same issue
### What was Expected?
Connection to the mobile app via OIDC
### Phone Model
Samsung A34
### Phone OS
Android
### Audiobookshelf App Version
Android App - 0.10.1
### Installation Source
Google Play Store
### Additional Notes
What i don't understand is that if i check the server logs, i'm correctly connected.
``2025-11-04 19:39:46.580
DEBUG
[OidcAuth] OIDC redirect_uri=https://abs.exemple.com/auth/openid/mobile-redirect
2025-11-04 19:39:46.580
DEBUG
[Auth] paramsToCookies: setting auth_method cookie to openid-mobile
2025-11-04 19:39:49.287
DEBUG
[OidcAuth] openid callback userinfo= { "email": email@exemple.com", "email_verified": true, "name": "Toto", "preferred_username": "toto", "rat": 1762251686, "sub": "b974568b-2f15-4f02-9ec6-b45f172f61bd", "updated_at": 1762281589 }
2025-11-04 19:39:49.287
DEBUG
[User] openid: User found by sub "b997d28b-2f15-4f02-9ec6-b45f172f61bd"
2025-11-04 19:39:49.288
DEBUG
[Auth] handleLoginSuccessBasedOnCookie: isApiBased: true, auth_method: openid-mobile
2025-11-04 19:39:49.290
DEBUG
[ApiCacheManager] session.afterCreate: Clearing cache
2025-11-04 19:39:49.291
DEBUG
[Auth] handleLoginSuccess: returnTokens: true, isRefreshTokenInResponse: true ``
Same on Authelia Side, can't see any error.
The used redirect_uris :
- 'https://abs.exemple.com/auth/openid/callback'
- 'https://abs.exemple.com/auth/openid/mobile-redirect'
- 'audiobookshelf://oauth'
And again, it is working on web browser.
adam
added the bug label 2026-04-24 23:56:53 +02:00
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 @JukyJukz on GitHub (Nov 4, 2025).
I have verified that the bug is not already awaiting release
Yes
What was the Problem?
OIDC login work correctly on any web browser
When trying to connect to the server on the android App, i get the following error :
Steps to Reproduce the Issue
Open the app - connect to the server - click on the button for login via OIDC - connect to authelia -> App print error
I've tried with version 0.10.1 and 0.10.0 of the app, still the same issue
What was Expected?
Connection to the mobile app via OIDC
Phone Model
Samsung A34
Phone OS
Android
Audiobookshelf App Version
Android App - 0.10.1
Installation Source
Google Play Store
Additional Notes
What i don't understand is that if i check the server logs, i'm correctly connected.
``2025-11-04 19:39:46.580
DEBUG
[OidcAuth] OIDC redirect_uri=https://abs.exemple.com/auth/openid/mobile-redirect
2025-11-04 19:39:46.580
DEBUG
[Auth] paramsToCookies: setting auth_method cookie to openid-mobile
2025-11-04 19:39:49.287
DEBUG
[OidcAuth] openid callback userinfo= { "email": email@exemple.com", "email_verified": true, "name": "Toto", "preferred_username": "toto", "rat": 1762251686, "sub": "b974568b-2f15-4f02-9ec6-b45f172f61bd", "updated_at": 1762281589 }
2025-11-04 19:39:49.287
DEBUG
[User] openid: User found by sub "b997d28b-2f15-4f02-9ec6-b45f172f61bd"
2025-11-04 19:39:49.288
DEBUG
[Auth] handleLoginSuccessBasedOnCookie: isApiBased: true, auth_method: openid-mobile
2025-11-04 19:39:49.290
DEBUG
[ApiCacheManager] session.afterCreate: Clearing cache
2025-11-04 19:39:49.291
DEBUG
[Auth] handleLoginSuccess: returnTokens: true, isRefreshTokenInResponse: true ``
Same on Authelia Side, can't see any error.
The used redirect_uris :
- 'https://abs.exemple.com/auth/openid/callback'
- 'https://abs.exemple.com/auth/openid/mobile-redirect'
- 'audiobookshelf://oauth'
And again, it is working on web browser.
@JukyJukz commented on GitHub (Nov 13, 2025):
Ok my bad. The problem was on my reverse proxy configuration. No issue on the application side.