Forum Discussion
IMAP.AccessAsApp wie verwenden?
Hallo,
Ich habe eine Service Anwendung die im Hintergrund E-Mails per IMAP von einem Office 365 Postfach abruft. Derzeit noch mit Basic Authentication. Ich möchte / muss die nun auf OAuth2 umstellen.
Alle Anleitungen, die ich bisher gefunden habe, enden damit, dass ich mich nicht mehr per IMAP anmelden kann.
Ich habe eine neue Anwendung in Azure hinzugefügt und die Berechtigung: https://ps.outlook.com/IMAP.AccessAsApp hinzugefügt.
Wenn ich nun ein Token generieren lasse (über ClientID, Secrect und Tenant), hat dies auch folgende Rollen:
"roles": [
"full_access_as_app",
"IMAP.AccessAsApp"
],
Wenn ich das Access Token nutze, um mich per IMAP anzumelden bekomme ich dennoch keinen gültigen Login:
AUTHENTICATE XOAUTH2 dXNlcj1vLnJpY2tAd2lud[..]
C1 NO AUTHENTICATE failed.
C2 LOGOUT<EOL>
scope=offline_access https://ps.outlook.com/.default
3 Replies
- Henryk_CiosCopper Contributor
ORickWW Hi Did You manage to solve this somehow? I have exactly the same output and run out of ideas
- ORickWWCopper Contributor
Hi Henryk, sadly i did not solve this issue by now. I've stopped working on it. According to the - rarely availible - documentation it should work this way, but it does not.
- Markus_FrankeCopper ContributorI would also be interested in a solution to this.