Is there a supported method to retrieve a token after initiating an OpenText workflow and securely transmit that token to an embedded iframe pointing to an external website?
If there are Accepted Answers, those will be shown by default. You can switch to 'All Replies' by selecting the tab below.
Thanks for posting @Mukesh5777 , my apologies for not connecting you to an expert in a timely fashion.
@DeepankarMallela could you review for us please?
Hi @Mukesh5777
After reading the use case, I assume you already have the token based on your text. You can then provide it to IFrame in that scenario. If HTTP Task is present in your BPMN model, you can preserve the request variable and utilize it going forward, but it is not the proper method. We can assist you quickly if you provide more information, and we can communicate via the mail chain if necessary.
Hi @Mukesh5777 ,
There are a lot of ways to obtain a token using OAuth2.x. The Workflow service can certainly authenticate and run different requests, but those are meant for REST API calls. If you will be using the token in the UI, you will probably need a secure library to obtain it. There are a couple of examples on our website that show how to obtain a token from our Thrust Services and you could start there. Even the Tutorial Application (https://developer.opentext.com/cloud-platform/sample-apps/contract-approval-sample) has a very nice PKCE/OIDC authentication example in it. But if you want a more detailed one, I suggest you start with this: https://developer.opentext.com/cloud-platform/sample-apps/openid-connect-starter
Once you have a token, you can safely pass it to an iFrame through https. The iFrame application should allow the calling application to show it in an iFrame.
Let us know more about your use case, we might be able to help more.
Let us know if you have any further questions here, will be happy to assist.