Skip to content

Don't put the ABS token in download URLs#1565

Open
matalvernaz wants to merge 1 commit into
TortugaPower:developfrom
matalvernaz:fix/abs-token-not-in-download-url
Open

Don't put the ABS token in download URLs#1565
matalvernaz wants to merge 1 commit into
TortugaPower:developfrom
matalvernaz:fix/abs-token-not-in-download-url

Conversation

@matalvernaz

Copy link
Copy Markdown
Contributor

Download URLs for Audiobookshelf carry the api token as a query param. Background URLSession writes task URLs to disk, and query strings end up in proxy and CDN logs, so the token leaks. Switched it to the Authorization header, which the download endpoint already accepts like every other call in the service.

Send the bearer through the Authorization header instead. Background
URLSession serializes task URLs to disk and query strings end up in
proxy/CDN access logs, so a token in the URL leaks. The download
endpoint already accepts Authorization: Bearer like every other
authenticated call in this service.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant