[Self-Hosted] Langgraph Platform not respecting auth config in langgraph.json

{
  "dependencies": ["."],
  "graphs": {
    "agent": "./src/react_agent/graph.py:graph"
  },
  "http": {
    "app": "./src/react_agent/webapp/app.py:app"
  },
  "auth": {
    "path": "./src/react_agent/auth/auth.py:auth"
  },
  "env": ".env"
}

When running the server locally, auth is respected. When deploying to platform, I see the auth type still gets set to “langsmith” and only accepts x-api-key authentication scheme. Interestingly, the custom webapp gets picked up correctly.

Any thoughts here?

Hi @ssmithra , are you interacting with your agent via studio? How are you calling your agent? And what version of the api are you on right now?

Current version of the api is 0.3.1. This is not an interaction between the Studio and the Agent deployment, we are testing via Postman.

How are you building the image and deploying?

Closing the loop here - it was user error. I had realized that the Agent Image did not have the Auth config in it. I needed to re-run langgraph dockerfile to get that config in the Image.

Side question, why doesn’t the image refer to langgraph.json file at runtime?