CentralAuth login mechanisms have a bunch of code to support mixed-protocol HTTP/HTTPS wikis. We haven't used this configuration for Wikimedia wikis for years, and we don't support third-party users. (Besides, it seems rare for websites to do that these days – either they're on HTTPS or on HTTP only.)
We should only support HTTPS-only and HTTP-only wikis (the latter merely for ease of local developer setup), and simplify our code to avoid future maintenance.