I've set up OAuth2 login with Microsoft as the issuer on our test Moodle site.
We use an alt login page, as we want users to be logging in via federated ID systems such as Shibboleth or Azure AD instead of trying to use the standard Moodle username and password box.
However, while I can see the nice Microsoft issuer button on the standard login page, I can't figure out what code I need to put on the alt page to correctly generate this?
I tried copying and pasting the HTML but this results in an expired sesskey error.
I need to know what the proper Moodle PHP code is to show this button. I've tried looking through the Moodle PHP files to see if I can find it but not having much luck.
Can anyone help?
We're on Moodle 3.5 if that makes a difference.
Here's a picture of the button I mean: