Office365 Intergration - Set API User issue

Office365 Intergration - Set API User issue

by David Bates -
Number of replies: 3

I have tried every solution i can find and nothing seems to work, i have setup AzureAD with all the correct permissons, clientID and ClientKey in OpenID Connect are correct, However when i go to set User in Office 365 intergration it takes me back to my dashboard and when i go to health check User API still needs setting. I cant seem to get to point where i login as admin for office365.


Please help


Error log attached

Moodle 3.1.2 (Build: 20160912)

Microsoft block 3.1.0.4 2016062005

oEmbed Filter 3.1.0.1 2016062001

OpenID Connect 3.1.0.2 2016062002

repository_office365 3.1.0.4 2016062004

Microsoft Office 365 Integration 3.1.0.5 2016062005
Average of ratings: -
In reply to David Bates

Re: Office365 Intergration - Set API User issue

by Paul Neilson -

Hi David,


I too am having the exact same issue, you had any luck resolving this?

In reply to Paul Neilson

Re: Office365 Intergration - Set API User issue

by David Bates -

Hi Paul,


i found a work around on GitHub that suggested commenting out the following from ~/public_html/moodle/auth/oidc/classes/loginflow/authcode.php


line 85

// } else {
       //     if (isloggedin()) {
       //         redirect(new \moodle_url('/'));
       //         die();
       //    }


Hope this helps             
In reply to David Bates

Re: Office365 Intergration - Set API User issue

by Paul Neilson -

Unfortunately David this didn't work, instead of defaulting to the fornt page it just goes to a blank page!