A user object that's populated from authenticated requests from the LangGraph studio.
Note: Studio auth can be disabled in your langgraph.json config.
{
"auth": {
"disable_studio_auth": true
}
}
You can use isinstance checks in your authorization handlers (@auth.on) to control access specifically
for developers accessing the instance from the LangGraph Studio UI.
@auth.on
async def allow_developers(ctx: Auth.types.AuthContext, value: Any) -> None:
if isinstance(ctx.user, Auth.types.StudioUser):
return None
...
return False