I plan to migrate my Moodle 3.1 to the 3.3.
After some tests, everything turns well but I want to fine tune the user experience
On Moodle 3.1, users accounts were linked to O365 account with oidc module.
In my 3.1, users had to login with the classic form (field username and password) in the login page.
In Moodle 3.3, i use the OAuth2 protocol included in the core.
The system works perfect but now users had to click on Microsoft button.
My problem :
I want to hide the classic form to prevent users to use it and have a login error.
My idea was to create a customize login page without the classic login form.
But the link to call for the OAuth2 authentification include de sesskey variable (exemple : https://moodle.mysite.be/auth/oauth2/login.php?id=1&wantsurl=%2F&sesskey=XXXXXXXXX).
How can I get this parameter in PHP?