microsoft / o365-moodle

Office 365 and Azure Active Directory plugins for Moodle
GNU General Public License v3.0
180 stars 136 forks source link

One singular Admin user receives daily mail "Action required: invalid Azure app secret found" the others do not. #2620

Open Denis-WUAS opened 3 weeks ago

Denis-WUAS commented 3 weeks ago

Hello, one of our admin users receives the below email every day.

_Dear site administrator,

The Azure app secret used in your Moodle and Microsoft 365 integration seems to be invalid. This can either be caused by the secret expired, or it has been deleted. Please review the secret to ensure the integration works as expected._

Nobody else does and the system works for everyone, including said admin.

We had that issue for a long time now and always hoped a Moodle update would resolve it. So far not. Any attempt to clear caches, update the field that we can and re-authenticate have not helped.

Do you haven an idea where this is coming from? Are there any pitch falls to look out for when disabling the module to apply a new app/secret to it or is there a way to update it without re-installing?

Moodle 4.4.2+ auth_oidc 4.4.0 local_o365 4.4.0 repository_office365 4.4.0 block_microsoft 4.4.0

Thank you very much, Denis

AntonT76 commented 3 weeks ago

Hi @Denis-WUAS

we also have the same issue, but in older Moodle version (4.1.9+) and older Microsoft plugins, see details in https://github.com/microsoft/o365-moodle/issues/2334. Maybe some hints could help you. The error message currently has no negative impact on us (user synchronisation and login are working).

We will do an update of Moodle and Microsoft plugins next week and we may also try to make a completely new app registration in Azure. Maybe we can solve the problem during the update or within the new app registration.

br, Anton

Denis-WUAS commented 1 week ago

Hi @AntonT76, am very curious about your findings. - Did you do the update and or the plugin reset/reinstallation?

Greetings, Denis :)

AntonT76 commented 1 week ago

Hello @Denis-WUAS

a few days ago we did an upate to Moodle version 4.1.12 and the latest Microsoft plugins. We also did a new Admin Consent and checked all settings in Azure. Unfortunately, the update did not help. We have also thought about to uninstall the Microsoft plugins, reinstall them and make a new app registration in Azure. Although we continue to receive this error mail message, we can't see any restrictions (login and synchronisation are running), so we did not take this step after all.

br, Anton