-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not get app or system token #2756
Comments
Hi Josh @JMillwood-92, |
Hi thanks for your reply, yes, I can confirm neither of the addresses contain a protocol. My entra address is set to point at my: 'myorganisation.sharepoint.com' address. Changing this to 'mydomain.com' causes Moodle to crash and become unresponsive. Similarly trying 'myorganisation.onmicrosoft.com' causes a similar crash and hang issue. |
Hi again Josh, |
The integration uses the application token to make Graph API calls to get/set data in Microsoft 365, so without it, it's expected that no sync features work. The only thing that doesn't depend on the application token is SSO. So, to solve the issue where you can't get the application token:
You should be able to use the "Detect" button to fill "Microsoft Entra tenant" and "OneDrive for Business URL" settings automatically; but in case it fails, fill those values in manually. Make sure protocols (https://) are not included. After it, the "Verify setup" button should work. If you still see errors, please use your browser developer tool to see the raw response of the AJAX call when you click the button to "Verify setup", and see if you can find out anything from it. Please feel free to post back your results. Regards, |
Hello All,
I was wondering if anyone had any pointers or insight to the "Could not get app or system token" error I am experiencing.
I've asked google and searched the issue bank, but most topics on this subject say that the error has been patched.
My setup is Moodle 4.5.1
O365 plugin version 4.5.0
My azure application registration is manually created due to the power shell script generating multiple errors.
I've checked this setup against the instructions and what the script does so many times, that I'm fairly sure this is not an app registration issue, but I could be wrong.
The plugin works to authenticate users, and the Health Check displays 'Microsoft 365 API calls are executing at full speed.' Similarly OneDrive authenticates as expected.
However, on the setup screen both detect functions for Entra and OneDrive fail with 'Could not get app or system token.'
And the verify setup button results in a 'Could not check reply url.' for the Azure app registration and 'Could not get app or system token.' for the Microsoft graph API.
Finally the Cohort sync function fails on every attempt with the same token based error, which is also displayed when trying to view the Cohort sync function preferences.
The more info link leads to a page does not exist error on the moodle plugin site.
Any assistance even if direction to another source of info would be gratefully received.
The text was updated successfully, but these errors were encountered: