local_o365 breaks platform update if idptype is AUTH_OIDC_IDP_IDP_TYPE_OTHER #2486
Labels
Issue type - bug
Bugs in existing code that needs to be fixed.
Plugin - local_o365
Status - PR ready / pending release
Dev is done and PR ready. Will be included in the next release.
Milestone
When trying to install a new plugin that has capabilities while we have local_o365 and auth_oidc installed and with
idptype
inAUTH_OIDC_IDP_TYPE_OTHER
, it breaks the installation and breaks the platform update because theget_app_token()
method does not support the case whereidptype
isAUTH_OIDC_IDP_IDP_TYPE_OTHER
.In the following code you can see the select that only supports the
AUTH_OIDC_IDP_TYPE_AZURE_AD
andAUTH_OIDC_IDP_TYPE_MICROSOFT
cases, but notAUTH_OIDC_IDP_IDP_TYPE_OTHER
which is a valid case:o365-moodle/local/o365/classes/oauth2/apptoken.php
Line 76 in e0eec2d
This is the stack trace:
The text was updated successfully, but these errors were encountered: