Closed kus6021 closed 1 year ago
Have you configured Azure AD according to https://learn.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth#use-client-credentials-grant-flow-to-authenticate-imap-and-pop-connections ?
Check also logs on Azure.
Hello, Thanks for your Help yes I registred the application an tried with all granted please see the screenshot
Thnks
Mustapha
Is access from another client using the same credentials working?
Hello, Happy 2023!!! I tested another solution with the same Azure Ad configuration and it works with this solution. I am looking for another way to use POP instead of IMAP. Thanks for your help
BR, Mustapha
ok
Hello, I try to create an redmine ticket from an email and I have an authentication issue
my command is: rake redmine_oauth:email:receive_imap RAILS_ENV="production" host=outlook.office365.com ssl=true username=XXXX@WWWWWW.com
the pluging seems correctly confirured and I have this message and I don't understant what is wrong:
Invoke redmine_oauth:email:receive_imap (first_time) Invoke environment (first_time) Execute environment Execute redmine_oauth:email:receive_imap S: * OK The Microsoft Exchange IMAP4 service is ready. [UABSADAAUAAyADYANABDAEEAMAAxADcAMgAuAEYAUgBBAFAAMgA2ADQALgBQAFIATwBEAC4ATwBVAFQATABPAE8ASwAuAEMATwBNAA==] C: RUBY0001 AUTHENTICATE XOAUTH2 S: + C: dXNlcj1zdXBwb3J0LWRldkBuZWxsY2xvdWQuZXUBYXV0aD1CZWFyZXIgZXlKMGVYQWlPaUpLVjFRaUxDSnViMjVqWlNJNklqUlRVRmN3YUhSb01qUXhSR1ZrWDBwR1dGQjRjakJoUzB4WkxYWndZVk14ZVhsWFpGY3RiRlpPTkRnaUxDSmhiR2NpT2lKU1V6STFOaUlzSW5nMWRDSTZJaTFMU1ROUk9XNU9VamRpVW05bWVHMWxXbTlZY1dKSVdrZGxkeUlzSW10cFpDSTZJaTFMU1ROUk9XNU9VamRpVW05bWVHMWxXbTlZY1dKSVdrZGxkeUo5LmV5SmhkV1FpT2lKb2RIUndjem92TDI5MWRHeHZiMnN1YjJabWFXTmxNelkxTG1OdmJTSXNJbWx6Y3lJNkltaDBkSEJ6T2k4dmMzUnpMb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