fangorious 1 Posted October 11, 2024 Posted October 11, 2024 I have Emby 4.8 deployed on Synology, and am running Stash in Docker on the same NAS. I'm using this plugin for metadata https://github.com/DirtyRacer1337/Jellyfin.Plugin.Stash But when Stash is configured to require authentication, images can't be pulled. https://github.com/DirtyRacer1337/Jellyfin.Plugin.Stash/issues/27 https://github.com/DirtyRacer1337/Jellyfin.Plugin.Stash/issues/13 Taking from the two issues, the developer says the Emby/Jellyfin don't make it possible to use the API token to authenticate those calls. I didn't find any issues in GitHub, I was wondering if this is a known issue or not.
Luke 42077 Posted October 11, 2024 Posted October 11, 2024 Hi, how does the authentication get added to the url?
fangorious 1 Posted October 11, 2024 Author Posted October 11, 2024 Without any further comment from the plugin dev, I would guess it's just this ApiKey header on the requests https://docs.stashapp.cc/networking/api/#authentication Quote Using the API Key is recommended instead of the above cookie method. You just need to add the key you generated in stash ( for more info about the API Key check stash’s help section ) in a header for every request you make curl -X POST -H "ApiKey: [blahblahblah]" -H "Content-Type: application/json" --data '{ "query": "mutation { metadataScan (input:{})}" }' localhost:9998/graphql
Solution Luke 42077 Posted October 15, 2024 Solution Posted October 15, 2024 OK the issue is that the core server works with image urls. There is currently no way to provide custom http headers for the requests, so that would have to be added. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now