Discovery
The client makes an unauthenticated request. The server answers 401 with a WWW-Authenticate header that names its protected-resource metadata (RFC 9728). That document names the authorization server, whose own metadata (RFC 8414, or OpenID Connect discovery) lists the endpoints.
Servers on the older revision publish the authorization-server metadata at their own origin, or simply expose /authorize, /token and /register there. A careful client tries both.