OneNote, Office365 and MS Mix Plugins now available

Re: OneNote, Office365 and MS Mix Plugins now available

by Mauricio Torres Masache -
Number of replies: 3
Hi James,


When the user was created by AzureAD, there is not  token on local_o365_token. I store a new token for that users in moodle\local\o365\classes\oauth2\token.php

Code for store new token

In reply to Mauricio Torres Masache

Re: OneNote, Office365 and MS Mix Plugins now available

by Darren O'Neill -

Hi Mauricio,

Thank you for the reply. I was wondering did this solve the one drive issue? Forgive my ignorance but I was wondering could you advise further on how to store the token for the user in the moodle\local\o365\classes\oauth2\token.php file.

Thanks and regards,

Darren 

In reply to Darren O'Neill

Re: OneNote, Office365 and MS Mix Plugins now available

by Mauricio Torres Masache -

I don't know if this solve the onedrive problem, because i changed the file before check the OneDrive service. In my moodle OneDrive repository works fine.


With the change in token.php, the token is stored automatic if the user doesn't have one. I had problems with the calendars service when the user doesn't have a token stored, maybe is the same for onedrive.


Try using my file.


Mauricio.

In reply to Mauricio Torres Masache

Re: OneNote, Office365 and MS Mix Plugins now available

by Darren O'Neill -

Hi Mauricio,

Thank you for taking the time to reply. I'll test your file and revert.

All the best,

Darren