You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2020-11-13 12:23:35

iplg59
Member
Registered: 2020-09-02
Posts: 9

oauth imap plugin for collector office365 doesn't work

Hi,

I am unable to get the oauth imap 1.0.3 plugin for office365 to work with GLPI 9.5.2 for the collector. I configured in glpi Application Oauth IMAP, I created an Enterprise Application aad.portal.azure.com
then in glpi when i created authorization it asks me to login with office365 account and i get this:
AADSTS9002325: Proof Key for Code Exchange is required for cross-origin authorization code redemption.

Do you know where the problem could come from?

Offline

#2 2020-11-16 16:55:46

keepcool5283
Member
Registered: 2013-10-10
Posts: 158

Re: oauth imap plugin for collector office365 doesn't work

Hi,
In Azure AD, did you put the redirect URLs ?
It must be the same than indicated in the plugin (Configuration => Oauth IMAP Application => Name of your application => URL Callback)


Apps Android GLPI Management : https://play.google.com/store/apps/deta … fr.dmn.app
Site Web : http://mdu-tech.fr/
GLPI 9.5.5 sur IIS 10 / PHP 8 / MySQL

Offline

#3 2020-11-18 09:45:51

iplg59
Member
Registered: 2020-09-02
Posts: 9

Re: oauth imap plugin for collector office365 doesn't work

hi, thank's for you reply. yes in azure ad it is the same url as that of the plugin

Offline

#4 2020-11-18 12:33:11

keepcool5283
Member
Registered: 2013-10-10
Posts: 158

Re: oauth imap plugin for collector office365 doesn't work

In my side it's working well. I follow this steps :
1 : Create Application in Azure AD
2 : Create Secret Client for the Application
3 : Change API Authorisation on the application in Azure AD to add : Email, IMAP AccessAsUser.all, Offline_access, openid. I'm not sure all are needed but like this it's working
4 : Complete information on Oauth IMAP Plugin
5 : Create Autorisation in Oauth IMAP Plugin and add the email for the collector
6 : Create the collector with  :
- Name : Name of collector
- Actif : Yes
- Server : Outlook.office365.com
- Connection Options : OFFICE 365 + SSL
- Port : 993
- ID : email put in step 5

With all this operations it's working for me.

PS : Sorry for my english


Apps Android GLPI Management : https://play.google.com/store/apps/deta … fr.dmn.app
Site Web : http://mdu-tech.fr/
GLPI 9.5.5 sur IIS 10 / PHP 8 / MySQL

Offline

#5 2021-01-22 13:58:19

gondrax
Member
Registered: 2021-01-22
Posts: 2

Re: oauth imap plugin for collector office365 doesn't work

Hello, I'm french (sorry for my english like keepcool5283 wink))

I have the same problem : AADSTS9002325: Proof Key for Code Exchange is required for cross-origin authorization code redemption.
I respect all the steps, but i think there is an other parameter to change.
So i'm block on step 5

Any Ideas ?

Thanks

Offline

#6 2021-02-04 13:24:01

jterriere
Member
From: bordeaux
Registered: 2009-02-25
Posts: 88

Re: oauth imap plugin for collector office365 doesn't work

Bonjour,
Je suis en train de paramétrer le plugin Oauth pour un collecteur Office 365, seulement, pouvez-vous me dire a quel endroit exactement il faut mettre l'adresse de retour de mon application? J'ai l'impression de tourner en rond...

Offline

Board footer

Powered by FluxBB