Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to pass authorization token to Rest Connector as header

edited Jul 31, 2018 8:51AM in Digital Assistant & Mobile 2 comments

Content

Hi,

Thank you community in advance, i am facing below issue followed documentation as well but no help.

How to pass  AUTHORIZATION TOKEN as header to a Rest Connector (token got from calling another component) 

1. I defined one Rest Connector (name - "UiPathAuthConnector") in MCS with Rest URL -->  "https/rest_url" (this is sample url just for ex)

2. Now I created Api with 2 components

  • GetAuth Component (Post Call) -> In this component I am calling the connector & passing username & password in body(as it is post call) to get a token  
    var mobileSdk = conversation.mobileSdk;
     
    var body = {
    "tenancyName": "somevalue",
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!