You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
thank you for this exporter! I'd like for it to support OAuth authentication, for use with Microsoft 365 mailboxes.
It'd be great to be able to autheticate with an API key.
Thanks again
The text was updated successfully, but these errors were encountered:
I think, the client grant credentials flow should be appropriate here. I suppose, dmarc-metrics-exporter would use that flow (which is basically one HTTP request) to obtain a access token (and refresh it when expired) and than uses that within the IMAP login step. (Maybe it should check the IMAP capabilities beforehand.)
Apart from the implementation, I wonder how to test this. I don't have a Microsoft 365 mailbox where I could configure a service principal of a client credentials grant flow. Maybe I can setup something temporarily, but not permanently as it is a paid service. This, however, still doesn't cover automated tests. Maybe I could setup a container with a Keycloak or similar for testing the client credentials flow, but not sure how to test the actual IMAP login ... I don't think Greenmail (my current test server) does support OAuth ...
Hi,
thank you for this exporter! I'd like for it to support OAuth authentication, for use with Microsoft 365 mailboxes.
It'd be great to be able to autheticate with an API key.
Thanks again
The text was updated successfully, but these errors were encountered: