[Bug]: SSO error: Config already exists for this address and username. #1247

Closed
opened 2026-04-24 23:55:22 +02:00 by adam · 4 comments
Owner

Originally created by @babatonga on GitHub (Jul 23, 2025).

I have verified that the bug is not already awaiting release

Yes

What was the Problem?

Since update 0.10.0 (got it on 19.07.2025 via Playstore) users can't use the App anymore without deleting and re-adding their saved Account. They get the following SSO error message after starting the App:

Image

Password authentication is disabled, just SSO via authentik is enabled.

Deleting the Account inside the App and adding it again fixes the problem.

Steps to Reproduce the Issue

  • use SSO as only authentication source
  • update Android App to 0.10.0
  • open app

What was Expected?

  • app should start and login the user as usual

Phone Model

Google Pixel 8 pro

Phone OS

Android 16

Audiobookshelf App Version

Android App - 0.10.0

Installation Source

Google Play Store

Additional Notes

No response

Originally created by @babatonga on GitHub (Jul 23, 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? Since update 0.10.0 (got it on 19.07.2025 via Playstore) users can't use the App anymore without deleting and re-adding their saved Account. They get the following SSO error message after starting the App: <img width="1008" height="2244" alt="Image" src="https://github.com/user-attachments/assets/f174e70a-850f-4e16-ac29-3370777be0a1" /> Password authentication is disabled, just SSO via authentik is enabled. Deleting the Account inside the App and adding it again fixes the problem. ### Steps to Reproduce the Issue - use SSO as only authentication source - update Android App to 0.10.0 - open app ### What was Expected? - app should start and login the user as usual ### Phone Model Google Pixel 8 pro ### Phone OS Android 16 ### Audiobookshelf App Version Android App - 0.10.0 ### Installation Source Google Play Store ### Additional Notes _No response_
adam added the bug label 2026-04-24 23:55:22 +02:00
adam closed this issue 2026-04-24 23:55:22 +02:00
Author
Owner

@cinvan2000 commented on GitHub (Jul 23, 2025):

I had the same issue using Authelia instead of Authentik. Removing connection info in the app and re-adding the server does fix it.

@cinvan2000 commented on GitHub (Jul 23, 2025): I had the same issue using Authelia instead of Authentik. Removing connection info in the app and re-adding the server does fix it.
Author
Owner

@Eragos commented on GitHub (Jul 25, 2025):

Hey!

My observations at Authelia are that it only occurs when the token refresh time has expired. Unfortunately, I haven't been able to get log yet. It has been occurring since the change with the token refresh.

Current solution: Delete and recreate the connection to the host.

Edit:
I can force it, if I set ACCESS_TOKEN_EXPIRY to a low value.

login is okay

[2025-07-25 20:16:57.921] DEBUG: Set Log Level to DEBUG
[2025-07-25 20:16:57.943] DEBUG: [ApiCacheManager] Array.afterUpsert: Clearing cache
[2025-07-25 20:17:29.271] DEBUG: [ApiCacheManager] count: 0 size: 0
[2025-07-25 20:17:29.276] DEBUG: [ApiCacheManager] Cache miss: {"user":"eragos","url":"/libraries"}
[2025-07-25 20:17:29.319] INFO: [SocketAuthority] Socket Connected to /socket.io fJCI9BefSbdQ5SFkAAAX
[2025-07-25 20:17:29.323] DEBUG: [ApiCacheManager] count: 1 size: 1519
[2025-07-25 20:17:29.326] DEBUG: [SocketAuthority] Authenticating socket to user "eragos"
[2025-07-25 20:17:29.348] DEBUG: [ApiCacheManager] Cache miss: {"user":"eragos","url":"/libraries/6b98ce89-bda6-463b-a293-384b94e09cbb?include=filterdata"}
[2025-07-25 20:17:29.377] DEBUG: [ApiCacheManager] count: 2 size: 3066
[2025-07-25 20:17:29.395] DEBUG: Loaded 1 of 1 items for "Continue Listening/Reading" in 0.01s
[2025-07-25 20:17:29.418] DEBUG: Loaded 10 of 514 episodes for "Newest Episodes" in 0.02s
[2025-07-25 20:17:29.433] DEBUG: Loaded 10 of 24 items for "Recently Added" in 0.01s
[2025-07-25 20:17:29.457] DEBUG: Loaded 10 of 485 items for "Listen/Read Again" in 0.02s
[2025-07-25 20:17:29.458] DEBUG: Loaded 4 personalized shelves in 0.08s
[2025-07-25 20:17:29.459] DEBUG: [ApiCacheManager] Cache miss: {"user":"eragos","url":"/libraries/6b98ce89-bda6-463b-a293-384b94e09cbb/personalized?minified=1&include=rssfeed,numEpisodesIncomplete"}
[2025-07-25 20:17:29.460] DEBUG: [ApiCacheManager] Caching with 1800000 ms TTL
[2025-07-25 20:17:33.573] DEBUG: [SocketAuthority] User Offline eragos
[2025-07-25 20:17:33.574] INFO: [SocketAuthority] Socket fJCI9BefSbdQ5SFkAAAX disconnected from client "eragos" after 4255ms (Reason: transport close)

login failed

nothing is logged (Debug Log Level)

Client Screenshot

Image

Best, Michael

@Eragos commented on GitHub (Jul 25, 2025): Hey! My observations at Authelia are that it only occurs when the token refresh time has expired. Unfortunately, I haven't been able to get log yet. It has been occurring since the change with the token refresh. Current solution: Delete and recreate the connection to the host. Edit: I can force it, if I set `ACCESS_TOKEN_EXPIRY` to a low value. ### login is okay [2025-07-25 20:16:57.921] DEBUG: Set Log Level to DEBUG [2025-07-25 20:16:57.943] DEBUG: [ApiCacheManager] Array.afterUpsert: Clearing cache [2025-07-25 20:17:29.271] DEBUG: [ApiCacheManager] count: 0 size: 0 [2025-07-25 20:17:29.276] DEBUG: [ApiCacheManager] Cache miss: {"user":"eragos","url":"/libraries"} [2025-07-25 20:17:29.319] INFO: [SocketAuthority] Socket Connected to /socket.io fJCI9BefSbdQ5SFkAAAX [2025-07-25 20:17:29.323] DEBUG: [ApiCacheManager] count: 1 size: 1519 [2025-07-25 20:17:29.326] DEBUG: [SocketAuthority] Authenticating socket to user "eragos" [2025-07-25 20:17:29.348] DEBUG: [ApiCacheManager] Cache miss: {"user":"eragos","url":"/libraries/6b98ce89-bda6-463b-a293-384b94e09cbb?include=filterdata"} [2025-07-25 20:17:29.377] DEBUG: [ApiCacheManager] count: 2 size: 3066 [2025-07-25 20:17:29.395] DEBUG: Loaded 1 of 1 items for "Continue Listening/Reading" in 0.01s [2025-07-25 20:17:29.418] DEBUG: Loaded 10 of 514 episodes for "Newest Episodes" in 0.02s [2025-07-25 20:17:29.433] DEBUG: Loaded 10 of 24 items for "Recently Added" in 0.01s [2025-07-25 20:17:29.457] DEBUG: Loaded 10 of 485 items for "Listen/Read Again" in 0.02s [2025-07-25 20:17:29.458] DEBUG: Loaded 4 personalized shelves in 0.08s [2025-07-25 20:17:29.459] DEBUG: [ApiCacheManager] Cache miss: {"user":"eragos","url":"/libraries/6b98ce89-bda6-463b-a293-384b94e09cbb/personalized?minified=1&include=rssfeed,numEpisodesIncomplete"} [2025-07-25 20:17:29.460] DEBUG: [ApiCacheManager] Caching with 1800000 ms TTL [2025-07-25 20:17:33.573] DEBUG: [SocketAuthority] User Offline eragos [2025-07-25 20:17:33.574] INFO: [SocketAuthority] Socket fJCI9BefSbdQ5SFkAAAX disconnected from client "eragos" after 4255ms (Reason: transport close) ### login failed nothing is logged (Debug Log Level) #### Client Screenshot <img width="744" height="791" alt="Image" src="https://github.com/user-attachments/assets/d1ee546d-a229-430f-9aa9-c0db258918e9" /> Best, Michael
Author
Owner

@Lord0fBytes commented on GitHub (Jul 31, 2025):

@Eragos this is being discussed in #1634

@Lord0fBytes commented on GitHub (Jul 31, 2025): @Eragos this is being discussed in #1634
Author
Owner

@github-actions[bot] commented on GitHub (Sep 4, 2025):

Fixed in v0.10.1-beta.

@github-actions[bot] commented on GitHub (Sep 4, 2025): Fixed in [v0.10.1-beta](https://github.com/advplyr/audiobookshelf-app/releases/tag/v0.10.1-beta).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#1247