Configuring access to exchange 365 with oauth authentication. How to debug
Hi all,
i'm following this guide https://academy.creatio.com/docs/8.x/no-code-customization/base-integrations/microsoft-email-contacts-and-calendar/set-up-the-ms-exchange-and-microsoft-365-services#title-192-1 to configure access to an exchange 365 mailboxy, by oauth authentication.
Exchange side configuration has been already carried out and i have configured clientid and secret on creation (i've configured tenantid too which is not mandatory but i think it should be).
Whenever i try to associate a mail to the mailbox service i've configured i'm redirected to a microsoft page prompting me for a login: https://login.microsoftonline.com/common/oauth2/authorize
This puzzles me because in client credentials authorization no login should be asked to the user. In order to figure out where the issue is i would normaly trace the rest call made by creatio to obtain the token i invoke graph api. Sadly i couldn't figure out at all how to do this or if it is even possible.
Do you have any suggestion on how i can debug this scenario or similar ones where i have to check api call made by creatio?
Thanks
Like
When you set up OAuth for Office365/Exchange mailboxes, it doesn't mean that no login info is asked of the user. It only means that Office365/Exchange is who asks for the login info of the user, not Creatio. The expected behavior is that a user adds their mailbox, they get redirected to the Exchange/Office365 login to authorize Creatio to use the mailbox, then redirected back to Creatio. If the user is already logged into their mailbox in the browser, they will not be asked to log in again and will only see the screen to authorize Creatio to use the mailbox.
Ryan