[Bug]: OIDC Login does not work on 2.26.0 #2892

Closed
opened 2026-04-25 00:11:38 +02:00 by adam · 4 comments
Owner

Originally created by @awmath on GitHub (Jul 13, 2025).

What happened?

OIDC authentikation fails on v2.26.0 but works on v2.25.1.

What did you expect to happen?

The exact same configuration (IDP and Audiobookshelf) works on v2.25.1.

Steps to reproduce the issue

  1. Setup OIDC in IDP (Authentik in this case)
  2. Setup OIDC in Audiobookshelf
  3. Login to IDP with a user unknown to Audiobookshelf
  4. Try to access Audiobookshelf

Audiobookshelf version

v2.26.0

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

None

Logs

[2025-07-13 23:22:26.385] INFO: [User] openid: Auto-registering user with sub "1234567" {
  sub: '1234567',
...
}
[2025-07-13 23:22:26.387] ERROR: [OidcAuth] openid callback error: auth.generateAccessToken is not a function
TypeError: auth.generateAccessToken is not a function
    at user.createUserFromOpenIdUserInfo (/app/server/models/User.js:313:24)
    at user.findOrCreateUserFromOpenIdUserInfo (/app/server/models/User.js:293:25)
    at async OidcAuthStrategy.verifyCallback (/app/server/auth/OidcAuthStrategy.js:124:18)
[2025-07-13 23:22:26.387] ERROR: "[Auth] No data in openid callback - Unauthorized"

Additional Notes

No response

Originally created by @awmath on GitHub (Jul 13, 2025). ### What happened? OIDC authentikation fails on v2.26.0 but works on v2.25.1. ### What did you expect to happen? The exact same configuration (IDP and Audiobookshelf) works on v2.25.1. ### Steps to reproduce the issue 1. Setup OIDC in IDP (Authentik in this case) 2. Setup OIDC in Audiobookshelf 3. Login to IDP with a user unknown to Audiobookshelf 4. Try to access Audiobookshelf ### Audiobookshelf version v2.26.0 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? None ### Logs ```shell [2025-07-13 23:22:26.385] INFO: [User] openid: Auto-registering user with sub "1234567" { sub: '1234567', ... } [2025-07-13 23:22:26.387] ERROR: [OidcAuth] openid callback error: auth.generateAccessToken is not a function TypeError: auth.generateAccessToken is not a function at user.createUserFromOpenIdUserInfo (/app/server/models/User.js:313:24) at user.findOrCreateUserFromOpenIdUserInfo (/app/server/models/User.js:293:25) at async OidcAuthStrategy.verifyCallback (/app/server/auth/OidcAuthStrategy.js:124:18) [2025-07-13 23:22:26.387] ERROR: "[Auth] No data in openid callback - Unauthorized" ``` ### Additional Notes _No response_
adam added the bug label 2026-04-25 00:11:38 +02:00
adam closed this issue 2026-04-25 00:11:38 +02:00
Author
Owner

@gray-morley commented on GitHub (Jul 14, 2025):

I'm seeing the same on my side when attempting to auto-register

@gray-morley commented on GitHub (Jul 14, 2025): I'm seeing the same on my side when attempting to auto-register
Author
Owner

@nwicone commented on GitHub (Jul 14, 2025):

Do you know when the fix #4486 will be available ?

@nwicone commented on GitHub (Jul 14, 2025): Do you know when the fix #4486 will be available ?
Author
Owner

@nichwall commented on GitHub (Jul 15, 2025):

The :edge docker tag is built on the latest commit to GitHub, so you can use that tag to get fixes and help test things before a full release. This tag is generally safe to use, but backups are always a good idea in case something breaks.

@nichwall commented on GitHub (Jul 15, 2025): The `:edge` docker tag is built on the latest commit to GitHub, so you can use that tag to get fixes and help test things before a full release. This tag is generally safe to use, but backups are always a good idea in case something breaks.
Author
Owner

@github-actions[bot] commented on GitHub (Jul 17, 2025):

Fixed in v2.26.1.

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

No dependencies set.

Reference: starred/audiobookshelf#2892