My application returns a token in the Basic Auth response. I have to pass that token in trigger polling request. How can I achieve this?
Best answer by ikbelkirasan
@srinivas.panyala - Yes, Session auth is also available in the UI. You can use it to achieve what you want, but you’ll have to calculate the basic authorization header yourself. Make sure you add the username and password input fields, and in the Step 2: Configure a Token Exchange Request, switch to code mode, add some logic to calculate the token which is the base64 of the username:password combination and set it in the Authorization header in the format: “basic <token>”. And make sure to return an object that contains the token that you would receive from the API. It will be stored in bundle.authData which can be retrieved when you make future requests from a trigger or an action.