Open fozziethebeat opened 6 months ago
Is there anyway to configure the client and server to look for the user token in a different header? For example, I looked through what Argilla does and they use a custom header for API tokens (X-Argilla-Api-Key
).
I tried cloning the template LabelStudio space on huggingface and making it private.
I tried connecting via the sdk in a jupyter notebook and wasn't able due to conflicting API key authorization. methods.
For example, I wanted the code below to work:
This correctly connects and shows that the server is up but fails to get users due to authorization keys being wrong.
I'm pretty sure this is due to the following client header code in the sdk:
Here Label Studio is authorizing the admin user with the
Authorization
Header, same as HuggingFace is using for gating access to private tokens.Any other ways to handle this? To my knowledge Private spaces require the
Auhotirzation
header.