From the documents, the way to request an authorization code is pretty ugly:
// Line breaks for legibility only https://login.microsoftonline.com/{tenant}/oau