How to configure AAD App (for webservice) ?

Issue #3 resolved
Jhean-François Fournier-Noël created an issue

Moodle: 3.8.4+ (Build: 20200717)

local_o365: 3.8.0.3 (2020020303)

OneDrive Converter: 1.1.2 (2019120500)

Whenever I try to link a system account, I automatically get the following error:

error/AADSTS500011: The resource principal named https://www.googleapis.com/auth was not found in the tenant named f5da7850-c1d8-429f-8907-85d7b2606108. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant. Trace ID: e509ca33-8b1b-4c49-847b-09ff44403000 Correlation ID: 07319dbc-5435-49ae-b67c-331cd96d0db7 Timestamp: 2020-07-21 13:26:25Z

I am using oidc and AAD to allow SSO on my Moodle instance. How can I adjust my Enterprise application to allow the use of OneDrive Converter ? It seems to be trying to contact the Googleapis domain somehow...

Comments (4)

  1. Neill Magill

    Please verify that you have configured the plugin to use your Microsoft OAuth2 connection:

    It sounds as though a Google one may be selected at the moment.

  2. Neill Magill

    The settings can be found in: Site administration > Plugins > Document converters > Microsoft OneDrive

  3. Jhean-François Fournier-Noël reporter

    I am using the same oAuth 2 service used to authenticate users through AAD:

    You made me realize that the system accont is also not linked to the oAuth2 service itself. I’m getting the same error through there (I also re-created the oAuth2 identity provider using the “Add a Microsoft identity provider”). I’ll close this issue and double-check everything with Moodle support.

    Sorry for bothering you and thanks for your time !

  4. Log in to comment