I'm creating custom chat window on a wordpress site (hosted outside Azure) for my bot using Direct line connector and Javascript, and to start conversation I need to specify Direct line SECRET or a TOKEN for my bot app.
To get a token i have to make a REST call to https://directline.botframework.com/v3/directline/tokens/generate and add to header "Authorization : Bearer SECRET". I don't want to expose that SECRET publicly in my javascript file and I don't want to pass it as a URL parameter.
What are my other options? How to get token without exposing my bot Direct line SECRET to client?
