Hello,
We have an inhouse single page application with uses okta kpce flow for user authentication. This application needs to connect to our Office365 Server (We use okta for authentication there as well when we are logging from the web interface) to send some emails to external addresses. Our spa application uses advanced authentication to connect with O365 using locally stored credentials in order to get the security token and send the necessary mails. Can we use directly the token we got from okta in order to remove the second authentication process, since okta and o365 are already linked? Or if the flow does not work that way could you point me to the right direction? My main question is how will I be able to authenticate the user with okta and that what to use to authenticate again the same user to O365