"Error: No assistants found." in LangGraph Studio platform when LG Server authorization is enabled in langgraph.json

Hey,

When I enable authorization in langgraph.json in the following way:
“auth”: {
“path”: “src/security/auth.py:auth”
},

where the security script simply checks “Authorization: Bearer ” (token must be equal to some env var)
I can’t access LangGraph Studio. Following message is displayed:
Error: No assistants found.

When I hit a “Deloyment Settings” cog-wheel next to the “Studio” button and set up an Authorization header with a value “Bearer ” the above message changes to:
Error: Failed to fetch assistants: . Forbidden

The token is 100% correct – the deployment works with curl commands

I found a solution – you need to add special handling for a Studio user: