[Bug]: Authelia SSO not Working on App #1299

Closed
opened 2026-04-24 23:56:53 +02:00 by adam · 1 comment
Owner

Originally created by @JukyJukz on GitHub (Nov 4, 2025).

Image

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 :

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.

Originally created by @JukyJukz on GitHub (Nov 4, 2025). ![Image](https://github.com/user-attachments/assets/be9946ac-32bd-4542-b1ac-204d463ac3fc) ### 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
adam closed this issue 2026-04-24 23:56:54 +02:00
Author
Owner

@JukyJukz commented on GitHub (Nov 13, 2025):

Ok my bad. The problem was on my reverse proxy configuration. No issue on the application side.

@JukyJukz commented on GitHub (Nov 13, 2025): Ok my bad. The problem was on my reverse proxy configuration. No issue on the application side.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#1299