Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mail-dev] Javamail with Oauth2 to connect to an IMAP Office 365 server
  • From: Quentin MAISONNEUVE <quentin.maisonneuve@xxxxxxxxxxxxxxx>
  • Date: Mon, 12 Dec 2022 10:52:42 +0000
  • Accept-language: fr-FR, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=open-groupe.com; dmarc=pass action=none header.from=open-groupe.com; dkim=pass header.d=open-groupe.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=pruc2tzy9DNhdUYsiPQlgq4kwb5L/SGcn9DkgfCGtwo=; b=RJJ8nMErqJtGhWc7KoueYqnMNExaNX5+61vLyG18sSVy2l7+x7enVlynrb+rGpVk1dYvk0gp9WHvvB7IgtNodDQ14Q5uN80XLkrTREzKrnD1D3LANidcM7fBT13BqDqpc3lKencwvVPUqtlBu7WzHbDiivppsZ6oswRzH1iUm7UExGQvNhTyZk/YRQZWwd1Cc2U3ER5esj6Q14cDignVqM1oJ3N2qMe/Q5gtPPe2WaSO75qVmnse09WZafsMooGcfBtypmRxYtls39wQqXQQnYH7kvrFfWwP1jHmP8wPJEgwvzxQo5tIVmIUya+o+PSzU+6tiXvJlqzzBqeNCA6mMA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n56YvXkoCq0dFlWl000/gcW4sf13/FhAz7t89nJwORHLYyh8q3JhZcSzDACv8QySkgDV2qoTwmUkrp7k+D6VL+Czl5LK6PEk29de+Y2706hMgzWxS9pOG5WWF7H2ArflR71pgr3y7TRxk/RmHA8w/VZCYN5yBrGT9o3kJvws/x23FFMZUn2RI/qFOl4seETAUUpkW+U3HRzFlnRy4YSfWfMtFFX74IDPBOsnCsK8jz5Zku7E6Y6qbUhCwL7bJFk+6ex+wtizU8yGBgidNYJSu8ap4CLZHBKLSHzF5fD31Dh/MVg9OzhjCYa+x+IXbUXhmN/zmYFU8BHMboMZ3XjiQQ==
  • Delivered-to: mail-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/mail-dev/>
  • List-help: <mailto:mail-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/mail-dev>, <mailto:mail-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/mail-dev>, <mailto:mail-dev-request@eclipse.org?subject=unsubscribe>
  • Msip_labels:
  • Thread-index: AQHZDhfDm36dhxM1ukC0Cw7N5oVPig==
  • Thread-topic: Javamail with Oauth2 to connect to an IMAP Office 365 server

Hello,

We are reaching out to you because we need your help to use the javamail library.
Microsoft is dropping the support of basic plain text auth for IMAP servers the 31 of December this year.
So we are trying to use it with the protocol Oauth 2 to connect to an IMAP Office 365 server but it dosen't seems to work despite configuring it as the documentation says.
We've tried some configuration from stackOverFlow too without success.
We've tried with the 1.6.7 and 2.0.1 versions of the library.

Do you have an example of configuration we can use / start with ?

PS : I've attached a the test file we are currently using, maybe you can point us out what is wrong.

Thank you by advance for your time.

Regards,


Quentin Maisonneuve

Developer at

XLOAN - Groupe Open

10, rue du Président Edouard Herriot, 44000 NANTES

Tel. +33 02 49 09 19 08


ATTENTION : Ce message et toutes les pièces jointes (ci-après le "message") sont confidentiels et strictement réservés aux destinataires qui procèderont aux vérifications appropriées en matière de virus. Toute utilisation ou diffusion non autorisée est interdite.
Tout message électronique est susceptible d'altération. L'auteur de ce message et le Groupe Open déclinent toute responsabilité au titre de ce message s'il a été altéré, déformé, falsifié ou indûment utilisé par des tiers, ou encore s'il a causé tout dommage ou perte de toute nature.
Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.

WARNING : This message and any attachments (the "message") are confidential and strictly intended for their addressees, who will conduct appropriate virus checks. Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration. The author of this message or Open Group shall not be liable for the message if altered, changed, falsified or unduly used by third parties, or for any damage or loss.
If you are not receiver of this message, please cancel it immediately and inform the sender.


Open, responsable de traitement, met en œuvre des traitements de données à caractère personnel à des fins légitimes, pour :
    ●     Solliciter clients et prospects sur des offres commerciales pertinentes
    ●     Evaluer la satisfaction client
    ●     Offrir ou afficher un contenu qui correspond aux intérêts et responsabilités professionnels
    ●     Contacter les parties prenantes avec des informations et des invitations orientées vers leurs intérêts et responsabilités professionnels

Ces données sont destinées aux services concernés de la société Open. Pour en savoir plus :

https://www.open.global/fr/personal-data-protection-policy

Open, data controller, processes personal data for legitimate purposes, to:
    ●     Contact prospects and customers with relevant offers
    ●     Measure customer satisfaction
    ●     Offer or display a content related to contacts’ expectations and area of interest
    ●     Provide third parties with invitations and information in connection with their professional responsibilities and area of interest
This data is intended for the relevant departments of Open Company. Click the link below to find out more details:

https://www.open.global/en/personal-data-protection-policy

Back to the top