advplyr
6f6395bad7
Only log update binary env path if it was updated
2023-12-07 17:32:06 -06:00
advplyr
8f4c65ec8c
Merge branch 'master' into sso-redirecturi
2023-12-07 17:04:59 -06:00
advplyr
341a0452da
Update auth settings endpoint to return updated flag and show whether updates were made in client toast
2023-12-07 17:01:33 -06:00
mikiher
6afb8de3dd
Remove ffbinaries local cache
2023-12-08 00:53:53 +02:00
mikiher
09282a9a62
Remove all callbacks and refactor spaghetti code in downloadUrls
2023-12-07 23:49:46 +02:00
mikiher
699a658df9
Remove debug printing from libs/ffbinaries
2023-12-07 08:50:45 +02:00
advplyr
b5e255a384
Update:Clean series sequence response from audible provider #2380
...
- Removes Book prefix
- Splits on spaces and takes first, removes trailing comma
2023-12-06 17:31:36 -06:00
mikiher
898b072e68
Merge branch 'advplyr:master' into binary-manager
2023-12-06 09:27:17 +02:00
advplyr
34156af403
Fix:Updating media progress not clearing cache #2392
2023-12-05 17:58:54 -06:00
advplyr
1ce1904c89
Add ffbinaries lib
2023-12-05 17:35:15 -06:00
mikiher
2e989fbe83
Add BinaryManager
2023-12-05 21:19:17 +02:00
Denis Arnst
cf00650c6d
SSO/OpenID: Also fix possible race condition
...
- We need to define redirect_uri in the callback again, because the global params of passport can change between calls to the first route (ie. if multiple users log in at same time)
- Removed is_rest parameter as requirement for mobile flow (to maximise compatibility with possible oauth libraries)
- Also renamed some variables for clarity
2023-12-05 09:43:06 +01:00
Denis Arnst
e6ab28365f
SSO/OpenID: Remove modifying redirect_uri in the callback
...
The redirect URI will be now correctly set to either /callback or /mobile-redirect in the /auth/openid route
2023-12-05 00:18:58 +01:00
Denis Arnst
80fd2a1a18
SSO/OpenID: Use a mobile-redirect route ( Fixes #2379 and #2381 )
...
- Implement /auth/openid/mobile-redirect this will redirect to an app-link like audiobookshelf://oauth
- An app must provide an `redirect_uri` parameter with the app-link in the authorization request to /auth/openid
- The user will have to whitelist possible URLs, or explicitly allow all
- Also modified MultiSelect to allow to hide the menu/popup
2023-12-04 22:36:34 +01:00
advplyr
84160b2f07
Fix:Server crash when user without a password attempts to login with a password #2378
2023-12-02 16:17:52 -06:00
advplyr
fbc2c2b481
Merge pull request #2333 from kieraneglin/ke/feature/upload-auto-fetch-data
...
Add ability to fetch book data on upload
2023-12-02 15:56:39 -06:00
Kieran Eglin
57a5005197
Addressed feedback changes
2023-12-01 21:42:54 -08:00
mikiher
281de48ed4
Fix "et al" cleanup
2023-11-30 21:49:24 +02:00
mikiher
3c6d6bf688
Merge branch 'advplyr:master' into bookfinder-improvements
2023-11-30 21:37:01 +02:00
mikiher
8ac0ce399f
Remove "et al[.]" in author cleanup
2023-11-30 21:17:13 +02:00
mikiher
80458e24bd
"[un]abridged" in title candidate generation
2023-11-30 21:15:25 +02:00
advplyr
6ab966ee2f
Merge pull request #2365 from Sapd/sso-errorhandling
...
SSO/OpenID: Provide error messages to logs
2023-11-28 16:39:01 -06:00
advplyr
166477ae27
Fix:Narrators page 404 on reload #2359
2023-11-28 16:39:52 -06:00
advplyr
a719065b8d
Auto formatting
2023-11-28 16:37:19 -06:00
Denis Arnst
36599a2984
SSO/OpenID: Rename probably misleading message
2023-11-28 21:16:39 +01:00
Denis Arnst
618028503b
SSO/OpenID: Also Log token header
2023-11-28 20:07:49 +01:00
Denis Arnst
ad53894ea1
SSO/OpenID: Provide detailed error messages
2023-11-28 17:29:22 +01:00
advplyr
b4c14fc78d
Parse NFO comma separated strings remove empty strings
2023-11-26 14:38:25 -06:00
advplyr
d9584174ff
Parse NFO trim final parsed description
2023-11-26 14:33:35 -06:00
advplyr
36e00e8d6a
Merge master
2023-11-26 13:54:06 -06:00
advplyr
5a8c60a8bc
Merge pull request #2343 from mikiher/caching
...
Simple API Caching for /libraries* requests
2023-11-26 12:33:54 -06:00
mikiher
3ff41f2b43
Cache HTTP headers and status
2023-11-25 23:49:56 +02:00
advplyr
2e06ae01a1
Merge pull request #2326 from lkiesow/hide-dev-logs
...
Allow enabling dev logs
2023-11-25 10:36:50 -06:00
mikiher
288a32cc1e
Merge branch 'caching' of https://github.com/mikiher/audiobookshelf into caching
2023-11-25 08:14:54 +02:00
mikiher
26fc3a1966
Remove currently unused time measurement utils
2023-11-25 08:14:45 +02:00
advplyr
1a046a9bcb
Merge branch 'master' into caching
2023-11-24 14:38:27 -06:00
advplyr
7a9c869ac5
Ignore sequelize hooks when updating user lastSeen on socket authentication
2023-11-24 14:27:32 -06:00
advplyr
572fb0993c
Rename ApiCacheManager to add .js file extension
2023-11-24 14:20:14 -06:00
advplyr
9beee3ed65
Fix:Change password api endpoint
2023-11-23 15:14:49 -06:00
mikiher
ab19e25586
Remove unnecessary timing measurements
2023-11-23 09:56:37 +02:00
mikiher
07d7d16418
Use a single router.get for API cache middleware
2023-11-23 09:55:55 +02:00
mikiher
5e1e748c71
Add ApiCacheManager unit test
2023-11-23 09:53:52 +02:00
advplyr
32ce771911
Allow cors while in development
2023-11-22 12:37:18 -06:00
mikiher
d944ecaa21
Merge branch 'caching' of https://github.com/mikiher/audiobookshelf into caching
2023-11-22 19:10:29 +02:00
mikiher
5aeb6ade72
Merge branch 'caching' of https://github.com/mikiher/audiobookshelf into caching
2023-11-22 19:00:11 +02:00
mikiher
107b4b83c1
Add cache middleware to most /libraries get requests
2023-11-22 18:40:42 +02:00
mikiher
a4d4f1bc2e
Merge branch 'advplyr:master' into nfo-metadata
2023-11-21 09:09:12 +02:00
advplyr
048e27f03f
Update:Openid auth endpoint sets the mobile flag on session to be used in the callback
...
Co-authored-by: Denis Arnst <git@sapd.eu>
2023-11-20 15:41:38 -06:00
Lars Kiesow
7b6aa3ba5a
Allow enabling dev logs
...
This patch allows users to enable dev logs on production systems by
setting the `HIDE_DEV_LOGS` environment variable.
Before, you could only use this on a non-production environment. On
production, the logs would be disabled. This patch changes the behavior
and uses the `NODE_ENV` only as default. On production they are disabled
if `HIDE_DEV_LOGS` is undefined but can be enabled by setting
`HIDE_DEV_LOGS=0` on dev, they are enabled if undefined, but can be
disabled by setting `HIDE_DEV_LOGS=1`.
2023-11-19 21:00:54 +01:00
advplyr
aa933df525
Update oidc redirect_uri to check x-forwarded-proto header for proxies
2023-11-19 14:00:39 -06:00
advplyr
a0f137936d
Merge pull request #2325 from lkiesow/milliseconds
...
Add milliseconds to logging
2023-11-19 13:41:10 -06:00
advplyr
dcbfc963c1
Update protocol for redirect_uri in openid strategy to work for reverse proxies
2023-11-19 13:38:09 -06:00
Lars Kiesow
91fa78d740
Add milliseconds to logging
...
This patch adds milliseconds to the time string used for logging. This
helps when debugging some timing issues and should have no real negative
side effect.
2023-11-19 20:36:04 +01:00
advplyr
89eb857c14
Fix initialize openid auth strategy
2023-11-19 12:57:17 -06:00
advplyr
4c2c320b9d
Remove global CORS for api endpoints and setup temp CORS check for ebook endpoint
2023-11-19 11:32:48 -06:00
advplyr
56c574c928
Update package-lock
2023-11-19 08:29:58 -06:00
advplyr
d2aea86957
Merge pull request #2300 from mikiher/bookfinder-testing-mocha
...
Bookfinder.js unit testing with mocha
2023-11-18 13:55:18 -06:00
mikiher
6a722102c5
Use ApiCacheManager & timing middleware
2023-11-17 08:49:40 +02:00
mikiher
f22f3361d5
Add timing utils
2023-11-17 08:48:09 +02:00
mikiher
4dec8c265d
Add ApiCacheManager
2023-11-17 08:47:40 +02:00
mikiher
d990e5b909
Add NFO metadata source
2023-11-12 13:30:23 +00:00
advplyr
fb48636510
Openid auth failures redirect to login page with error message.
...
Remove remaining google oauth server settings
2023-11-11 13:10:24 -06:00
advplyr
1ad6722e6d
Remove google-oauth passport strategy
2023-11-11 11:29:59 -06:00
advplyr
557ef2ef79
Update /auth/openid endpoints for correct PKCE handling
...
- Provide error handling for /auth/openid
- Add session.mobile inside /auth/openid
- Proper PKCE handling for /auth/openid/callback
- redirect_uri handling for the token url in /auth/openid/callback
Co-authored-by: Denis Arnst <git@sapd.eu>
2023-11-11 10:52:05 -06:00
advplyr
237fe84c54
Add new API endpoint for updating auth-settings and update passport auth strategies
2023-11-10 16:11:51 -06:00
advplyr
078cb0855f
Merge branch 'master' into auth_passportjs
2023-11-10 07:26:07 -06:00
mikiher
e8c14dbb58
Test BookFinder.js using mocha
2023-11-09 19:58:51 +00:00
advplyr
ee75d672e6
Matching user by openid sub, email or username based on server settings. Auto register user. Persist sub on User records
2023-11-08 16:14:57 -06:00
advplyr
e140897313
Add match existing user by and auto register settings and UI
2023-11-08 14:45:29 -06:00
mikiher
d1671f0ddc
Cleanup commented out tests
2023-11-08 16:37:12 +00:00
mikiher
2730486ba5
Add tests for AuthorCandidates and search() in BookFinder
2023-11-08 16:24:08 +00:00
mikiher
49e4515785
Add stripRedudantSpaces
2023-11-08 16:21:20 +00:00
mikiher
819c524f51
Pass audnexus to AuthorCandidates constructor directly
2023-11-08 16:19:24 +00:00
mikiher
ba60fc7581
Add tests for TitleCanidates
2023-11-06 05:33:06 +00:00
advplyr
f840aa80f8
Add button to populate openid URLs using the issuer URL
2023-11-05 14:11:37 -06:00
advplyr
c17540e191
Add app and serverVersion properties to response from /status
2023-11-05 13:06:26 -06:00
advplyr
309ef807ab
Update /auth/openid endpoint to work with PKCE from mobile
...
Co-authored-by: Denis Arnst <git@sapd.eu>
2023-11-05 13:05:16 -06:00
mikiher
89055f8655
Remove unnecessary includesAuthorDiff from sorting
2023-11-05 16:14:26 +00:00
mikiher
5a3d450482
Refactor diff declarations in title candidate sorting
2023-11-05 15:13:42 +00:00
mikiher
047e7a72f2
Make position an internal property of titleCandidates
2023-11-05 14:56:20 +00:00
mikiher
ee3d3808ef
Refactor removing author from title candidate
2023-11-05 14:31:36 +00:00
mikiher
8f5a6b7c95
Move utility functions to module scope
2023-11-05 14:17:26 +00:00
advplyr
840811b464
Replace passport openidconnect plugin with openid-client, add JWKS and logout URL server settings, use email and email_verified instead of username
2023-11-04 15:36:43 -05:00
mikiher
567e1c46db
Fix handling of single mefia file updates
2023-11-04 11:06:54 +00:00
advplyr
cfe0c2a986
Merge branch 'master' into auth_passportjs
2023-11-03 08:29:05 -05:00
advplyr
5220361151
Fix:Podcast episode cron not adding/removing library items correctly #2277
2023-11-03 07:07:58 -05:00
advplyr
828b96b2d9
Add server settings for changing openid button text and auto launching openid
2023-11-02 13:55:01 -05:00
advplyr
ab14b561f5
Merge master
2023-11-01 08:58:48 -05:00
clement.dufour
1ae2089253
Update:Add cover file extension in RSS feeds
2023-11-01 12:11:24 +01:00
clement.dufour
3c21e9d413
Update:Simpler content URL in RSS feeds
2023-11-01 12:10:44 +01:00
advplyr
9616d99640
Fix:Crash when matching with author names ending in ??? by escaping regex strings #2265
2023-10-30 16:35:41 -05:00
advplyr
27497451d9
Add:Ereader device setting to set users that have access #1982
2023-10-29 11:28:34 -05:00
advplyr
225dcdeafd
Fix:RSS feed parser for episode metadata tags that have attributes #1996
2023-10-28 16:11:15 -05:00
advplyr
88c794e710
Fix:Open RSS feed for series & collections respect prevent indexing option #2047
2023-10-28 13:45:06 -05:00
advplyr
f9c4dd2457
Update watcher function calls, add js docs
2023-10-26 16:41:54 -05:00
advplyr
3bccd52196
Merge branch 'master' into watcher-update-api
2023-10-26 16:33:48 -05:00
advplyr
8dc4490169
Fix:Watcher waits for files to finish transferring before scanning #1362 #2248
2023-10-25 16:53:53 -05:00
advplyr
ef1cdf6ad2
Fix:Only show authors with books for users #2250
2023-10-24 17:04:54 -05:00
mikiher
e054b9a54c
Add API to update a path on a watched library folder
2023-10-24 13:35:43 +00:00
advplyr
0ee6336b02
Merge pull request #2245 from mikiher/watcher-fixes
...
Fix incorrect subpath checks in server/watcher.js
2023-10-23 17:28:44 -05:00