Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1458 from LP-dhorwitz/patch-7
Browse files Browse the repository at this point in the history
Update using-consumer-access-tokens.md
  • Loading branch information
j9t authored Jun 30, 2022
2 parents cebf7de + ae59d00 commit ab92bba
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ indicator: both
### Introduction

Brands can provide LivePerson's Conversational Builder Bots a consumer (OAuth 2.0) access token. This token can later be used to access the brand's APIs on behalf of the consumer.
By configuring Consumer Authentication credentials, an authentication challange is sent to the consumer. Once autnentication is completed, an access token is obtained and sent to the bot. This “delegates” access to the bot, so it can make the API calls.
This can be done in order to accomplish many business and operational use cases on which Bots integrates with brand's APIs such as:
By configuring Consumer Authentication credentials, an authentication challange is sent to the consumer. Once authentication is completed, an access token is obtained and sent to the bot. This “delegates” access to the bot, so it can make the API calls.
This can be done in order to accomplish many business and operational use cases on which Bots integrate with brand's APIs such as:
* To enrich conversation by retrieving information about the consumer.
* To perform an operation on behalf of the consumer

Expand Down Expand Up @@ -67,7 +67,7 @@ To use a defined Consumer Authentication credential in a bot, go into the bot an
<img class="fancyimage" style="width:700px" src="img/ConvoBuilder/consumerAuthCred.png">

Then, add the provided access as an authorization header to the API integration.
In request headers, add authozion header:
In request headers, add authorization header:
**key** = Authorization
**value** = Bearer {$botContext.cidp_accessToken}

Expand All @@ -78,6 +78,7 @@ In request headers, add authozion header:
Follow this configuration guide: [Consumer Delegation](consumer-delegation-configuration.html)

**4. Configure Dialog**

Dialog should include an API integration and consumer verification delegation button.
**Note:** The API integration must be included and ordered in the dialog flow before the consumer verification dialog button.

Expand All @@ -98,8 +99,8 @@ if(cidp_accessToken) {

***4.2. Add Consumer Delegation Link to the Conversation Flow***

Before accessing the protected integrated API, we need to prompt user to verify his identity. This will be done in the conversation dialog by adding an interactive button to the conversation.
The following paraeter should be define in the [inetartive button/questions](conversation-builder-interactions-questions.html):
Before accessing the protected integrated API, we need to prompt the user to verify their identity. This will be done in the conversation dialog by adding an interactive button to the conversation.
The following paraeter should be define in the [interactive button/questions](conversation-builder-interactions-questions.html):
**Button Label** = Login
**Action Type** = Web URL
**Webview** = Full
Expand Down

0 comments on commit ab92bba

Please sign in to comment.