Originally created by @rabidpug on GitHub (Dec 20, 2023).
OIDC login is working as expected via browser, but when trying to login on the iOS app I receive the error "SSO error: Token data is missing in the response".
in Authelia and Audiobookshelf's logs, I see the error "Access Request failed with error: The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client. The 'redirect_uri' from this request does not match the one from the authorize request."
Originally created by @rabidpug on GitHub (Dec 20, 2023).
OIDC login is working as expected via browser, but when trying to login on the iOS app I receive the error "SSO error: Token data is missing in the response".
in Authelia and Audiobookshelf's logs, I see the error "Access Request failed with error: The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client. The 'redirect_uri' from this request does not match the one from the authorize request."
Authelia configuration:
```yaml
- id: audiobookshelf
description: audiobookshelf
secret: '[SECRET]'
sector_identifier: ''
public: false
authorization_policy: two_factor
pre_configured_consent_duration: '30d'
audience: []
scopes:
- openid
- email
- profile
redirect_uris:
- https://[DOMAIN]/auth/openid/callback
- audiobookshelf://oauth
grant_types:
- refresh_token
- authorization_code
response_types:
- code
response_modes:
- query
- form_post
userinfo_signed_response_alg: none
```
### Steps to reproduce
1. Try to log in with OpenID on the mobile app
### Expected behaviour
- Login should be successful
### Actual behaviour
- Login is not successful
### Environment data
Audiobookshelf Version: 2.6.0
- [Y ] iOS App?
#### iOS Issue
iOS Version: iOS 17.3
iPhone model: iphone 12
adam
added the bug label 2026-04-24 23:38:44 +02:00
Not sure if there was a change in the updates since I raised the issue, but setting a callback url of https://[DOMAIN]/auth/openid/mobile-redirect in Authelia now lets me log in.
Thanks!
@rabidpug commented on GitHub (Dec 25, 2023):
Not sure if there was a change in the updates since I raised the issue, but setting a callback url of https://[DOMAIN]/auth/openid/mobile-redirect in Authelia now lets me log in.
Thanks!
The documentation needs to be updated. I ran into this same issue. The audiobookshelf://oauth mentioned in the OIDC setup is not correct. It needs to be https://yourdomain.com/auth/openid/mobile-redirect.
@metril commented on GitHub (Dec 30, 2023):
The documentation needs to be updated. I ran into this same issue. The `audiobookshelf://oauth` mentioned in the OIDC setup is not correct. It needs to be `https://yourdomain.com/auth/openid/mobile-redirect`.
@nichwall commented on GitHub (Dec 30, 2023):
> The documentation needs to be updated.
You can open a pull request at https://github.com/advplyr/audiobookshelf-web to help update the documentation.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @rabidpug on GitHub (Dec 20, 2023).
OIDC login is working as expected via browser, but when trying to login on the iOS app I receive the error "SSO error: Token data is missing in the response".
in Authelia and Audiobookshelf's logs, I see the error "Access Request failed with error: The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client. The 'redirect_uri' from this request does not match the one from the authorize request."
Authelia configuration:
Steps to reproduce
Expected behaviour
Actual behaviour
Environment data
Audiobookshelf Version: 2.6.0
iOS Issue
iOS Version: iOS 17.3
iPhone model: iphone 12
@rabidpug commented on GitHub (Dec 25, 2023):
Not sure if there was a change in the updates since I raised the issue, but setting a callback url of https://[DOMAIN]/auth/openid/mobile-redirect in Authelia now lets me log in.
Thanks!
@metril commented on GitHub (Dec 30, 2023):
The documentation needs to be updated. I ran into this same issue. The
audiobookshelf://oauthmentioned in the OIDC setup is not correct. It needs to behttps://yourdomain.com/auth/openid/mobile-redirect.@nichwall commented on GitHub (Dec 30, 2023):
You can open a pull request at https://github.com/advplyr/audiobookshelf-web to help update the documentation.