Hi Corion, Thank you for the reply.
below is the link of the akamai technologies which provides cyber security to the organisation so that their application can be accessed safely
What is the scenario:
Organization is using akamaai service which sits between their office 365 and the mailboxes, whenever customer login using email id to office 365 it routes to the certain akamai page to authenticate where user id and password needs to be provided in order to proceed to access the mailbox, this is how it works from the UI.
The same needs to be implemented in the application using IMAP::Client(maybe before we provided username and password to the imap object).
How this can be achieved, i hope this is clear now. thank you.