Allow change of the Microsoft 365 OAuth2 endpoints
Evolution is in some places hard-coded to check for endpoints such as outlook.office365.com, which are used by Microsoft's worldwide cloud:
- https://gitlab.gnome.org/GNOME/evolution-ews/blob/3.38.0/src/EWS/common/e-ews-connection.c#L3674
- https://gitlab.gnome.org/GNOME/evolution-ews/blob/3.38.0/src/EWS/common/e-ews-connection.c#L10410
- https://gitlab.gnome.org/GNOME/evolution-ews/blob/3.38.0/src/EWS/common/e-oauth2-service-office365.c#L86
However, there are four other Microsoft 365 clouds, which use different endpoints instead (such as outlook.office365.us). Evolution needs to additionally match on those endpoints when detecting Microsoft 365, in order to automatically use OAuth2 for example.
Edited by Milan Crha