Fix CentralAuth logins

Depends on https://gerrit.wikimedia.org/r/75154 but doesn't require it
for deployment.

Bug: 51789
Change-Id: I578b69555ec1fd9e2014ca06c6e0533057a2c7f8