mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-30 23:40:40 +02:00
[Enhancement]: Security/OIDC: Allow enabling of check for email_verified field in JWT payloads for existing accounts #3092
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ZLoth on GitHub (Nov 14, 2025).
Type of Enhancement
Server Backend
Describe the Feature/Enhancement
In Authentication → OpenID Connect Authentication, there should be an option for an administrator to enforce verified email for pre-existing ABS accounts.
Why would this be helpful?
As discussed in https://github.com/advplyr/audiobookshelf/issues/4830, the current policy of ABS is that the check for the
email_verifiedis only conducted when a new account creation request comes from the OIDC provider, but not when the account already exists. The assumption is that once a email is verified, it remains in a verified state.I feel that this is a bad security assumption, as this should always be checked when a user is logging in through the OIDC provider. As turning on immediate enforcement of this policy may cause issues, I request that a toggle be put in with a default set to Off and that the administrator be allowed to turn it on.
Future Implementation (Screenshot)
Audiobookshelf Server Version
2.30
Current Implementation (Screenshot)
None.