Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
How to pass authorization token to Rest Connector as header — Cloud Customer Connect
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

Received Response
21
Views
2
Comments
edited Jul 31, 2018 8:51AM in Digital Assistant and 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!