0
votes

Let us assume :

  • An iframe embedded in a webpage for chatting with Bot.
  • Every time we refresh the page, a new conversation ID is assigned(c# bot solution with SDK's being used provided by microsoft. Microsoft Bot builder).
  • I need to get a token(secret) for the specific conversation ID mentioned above.
  • Note : we already have the conversation ID and Direct line secret on Azure, using these i need to get token to send messages to chat window asynchronously.

How do i get the token using Direct Line API 3.0, any ideas?

2
I have the conversation ID, I need a token using Direct Line API 3.0 for the specific conv ID - Tanmoy
API of direct line needs conversation id only see this docs.microsoft.com/en-us/azure/bot-service/rest-api/… - Hitesh Anshani
Yes, but the header also contains Authorization which is a token - Tanmoy
check my answer and links mention - Hitesh Anshani

2 Answers

1
votes

If you want to generate token you can do this way

Refer this More HelpFull

Generates a token that is valid for one conversation.

POST /v3/directline/tokens/generate


Refreshes the token.

POST /v3/directline/tokens/refresh

Whole Description