dev/mail#79 - Use OpenID Connect with MS Exchange
authorTim Otten <totten@civicrm.org>
Tue, 10 Nov 2020 00:47:50 +0000 (16:47 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 10 Nov 2020 00:49:01 +0000 (16:49 -0800)
commitd551e4c163c2c83dd6c95f422e34c7eabbac25cf
treece4ff37ee3b570198710f8eb6b0612f0fd5a65b9
parent47617d1e070dfaf2a7868ea68f69ea1475be304c
dev/mail#79 - Use OpenID Connect with MS Exchange

At time of writing, there appears to be a problem in Microsoft's services:
if you request both `User.Read` and `IMAP.AccessAsUser.All`, then the token
does not actually work for IMAP access.

However, it is does work to combine `openid` and `IMAP.AccessAsUser.All`.

This patch revises the MS Exchange definition to get resource-owner details
via OpenID Connect's `id_token`.
ext/oauth-client/providers/ms-exchange.dist.json