You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: auth.clients[...].update() uses PUT but the auth API only implements PATCH (always 5xx) #49
campus_python.auth.v1.clients.Client.update() sends its request with PUT, but the Campus auth service only implements PATCH on /clients/{client_id}/. Every call to update() therefore fails with a server error, even when the identical request succeeds as a PATCH.
Discovered while registering redirect_uris on a client to prepare for campus#651 (redirect_uri enforcement).
against the development deployment (campusauth-development.up.railway.app), verified 2026-09-30:
Wrapper call fails consistently (2/2 attempts) with campus_python.errors.ServerError: An unexpected error occurred (5xx from the server).
Raw PATCH /auth/v1/clients/uid-client-xxxx with the identical JSON body {"redirect_uris": [...]} returns 200 and the change persists.
Expected Behavior
update() should succeed; the campus auth clients routes (campus/campus/auth/routes/clients.py) register GET/POST/PATCH/DELETE for /clients/{client_id}/ and have no PUT route.
Fixed by PR #51 (c1d4a78) and verified 2026-10-01: the same auth_clients[id].update(redirect_uris=[...]) call that 500'd twice yesterday now returns 200 via campus-cli's client update --redirect-uri; readback confirms the URIs persisted on the development deployment.
Activity
nycomp commentedon Oct 1, 2026
Fixed by PR #51 (c1d4a78) and verified 2026-10-01: the same
auth_clients[id].update(redirect_uris=[...])call that 500'd twice yesterday now returns 200 via campus-cli'sclient update --redirect-uri; readback confirms the URIs persisted on the development deployment.