triauth for AudiobookshelfOIDC
Let your household open Audiobookshelf on the web and in the phone app with one approval on their own device, and no Audiobookshelf passwords.
- Sign-in through
- OpenID Connect bridge
- Available in
- Audiobookshelf 2.7.0 and newer
- Set up in
- Settings › Authentication
About Audiobookshelf
Audiobookshelf is a server for audiobooks and podcasts that runs at home or on a NAS. It scans folders of files, downloads podcast episodes, streams everything to the web app and to the phone app, and keeps each listener's progress. Households and small groups use it for the audiobooks they own.
Connect Audiobookshelf to triauth
Audiobookshelf signs people in through the triauth OpenID Connect bridge. Once connected, the login page on the web and in the phone app shows a button with your domain's name. People click it, type their username, and approve on their own device. Nobody keeps an Audiobookshelf password, and when someone leaves, removing their identity records at your domain ends their access to Audiobookshelf as well.
How it works
Open oidc.triauth.org and enter your domain. Paste Audiobookshelf's redirect address,
https://books.example.com/auth/openid/callbackwith your own server address in place ofbooks.example.com. Click Add another redirect URI and addhttps://books.example.com/auth/openid/mobile-redirect, which the phone apps use. Click Connect app. The bridge gives you a client ID and a client secret.In Audiobookshelf, open Settings › Authentication, tick OpenID Connect Authentication, and fill in the fields below with your domain in place of
example.com. Leave Group Claim and Advanced Permission Claim empty. Save, then restart the server.Field Value Issuer URL https://oidc.triauth.org/example.com, then click Auto-populate, which fills in the four addresses below it and the signing algorithmClient ID and Client Secret from the bridge Button Text Sign in with example.comMatch existing users by Match by email Auto Register on Open Audiobookshelf's login page, on the web or in the phone app, and click Sign in with example.com.
Checkpoint
Audiobookshelf's login page shows Sign in with example.com under the password form. Choosing it opens a page from the bridge that asks for the username, and the person's authenticator asks them to approve. The phone app opens the same page in the browser and comes back once the person has approved.
Good to know
- With Auto Register on, everyone with an identity at your domain gets an Audiobookshelf account the first time they sign in, as a user who can listen and download in every library. People who already have an account under the same email address are moved over to the new sign-in. To let only one group in, limit the app to a group when you connect it.
- Account types and library access stay in Audiobookshelf's user management. Its Group Claim expects the values
admin,user, orguestexactly, and the groups published at your domain always carry the domain, such aslisteners@example.com, so it stays empty. - The official phone app and the third-party apps named in Audiobookshelf's guide sign in the same way, through the second redirect address, as long as they reach the server over https.
For the person who connects the app
| Setting | Value |
|---|---|
| Redirect addresses | two on one connection: https://<your-server>/auth/openid/callback for the web app and https://<your-server>/auth/openid/mobile-redirect for the phone apps, both with /audiobookshelf in front of /auth when Subfolder for Redirect URLs is set. The apps' own address, audiobookshelf://oauth, stays in Allowed Mobile Redirect URIs on the server and never reaches the bridge |
| Where in Audiobookshelf | Settings › Authentication › OpenID Connect Authentication, as an administrator. A restart applies the change |
| Issuer | exactly https://oidc.triauth.org/<your domain>, with no trailing slash. Auto-populate copies it from the discovery document together with the Authorize, Token, Userinfo, and JWKS URLs, and leaves Logout URL empty, since the bridge has no sign-out endpoint |
| Claims | sub is the account key, preferred_username the username, such as john, and email the address. Audiobookshelf reads them from the userinfo endpoint |
| Scopes | openid profile email. A Group Claim or an Advanced Permission Claim is added to the scope and must match a value for every person, so both stay empty |
| Sessions | Audiobookshelf issues its own tokens after the sign-in and renews them itself, usually for 30 days, without asking the bridge again |
Audiobookshelf keeps the client secret, so leave This app can't keep a secret unticked when you connect it on the bridge. Audiobookshelf's OpenID Connect guide explains every field and lists the third-party apps.
Next steps
- Read the OpenID Connect bridge page for what every connected app gets and what the bridge keeps private.
- Read Roll out to your team to give everyone in your household or organization an identifier at your domain.
- Read Groups to limit Audiobookshelf to one group when you connect it.
- Read Audiobookshelf's OpenID Connect guide for every setting Audiobookshelf offers.
All logos and trademarks belong to their respective owners and do not imply affiliation or endorsement of the organization or product by triauth, nor vice versa. The content provided on this page may include information from third-party sources. We do not assume any responsibility for the completeness, correctness, or applicability of the information. You should independently verify any details before relying on them.