Page MenuHomePhabricator

Update IP auth middleware to provide default user
Closed, ResolvedPublic5 Estimated Story Points

Description

We need to update our IP auth middleware so that it includes default user object in the payload. This will solve the problem with IP authenticated users that we are having right now:

$ curl --silent https://api.enterprise.wikimedia.com/v1/projects | jq .
{
  "status": 500,
  "message": "missing user in request context"
}

Also we need to update the services that currently use this middleware to authenticate and provide user data through IaC.