I am attempting to do azure integration with moodle, I have followed the guide here https://docs.moodle.org/32/en/Office365 but I cannot for the life of me get the Set Api User function to work. It proceeds to the correct tenancy asking me to log in, and then authorise but then returns me to moodle with a general error.
The debug error is:
auth_oidc\oidcclient::tokenrequest:252: Bad response received Data: (string)Could not resolve host: login.microsoftonline.com
Any ideas?