title: BOT Directline Channel User Authentication
body: <p>We have a web application and enabled direct client channel to communicate with the hosted BOT framework using directline secret.</p>
  
  <p>Link :<a href="https://github.com/Microsoft/BotFramework-WebChat" rel="nofollow noreferrer">BOT - Directline webchat</a></p>
  
  <p>Sample Code:</p>
  
  <pre><code>BotChat.App({
                  directLine: { secret: Key },
                  //dynamically retrieve the logged in user info in your mvc View once the user logged in and pass it on
                  //and pass thoes info to your bot
                  user: { id: '', email: ''   },
                  bot: { id: 'testBOT' },
                  resize: 'detect'
              }, document.getElementById("divbot"))
  </code></pre>
  
  <p>Here is my situration:
  1) The user successfully logged in to the application and authorized using the individual account</p>
  
  <p>2) How to authenticate the user in the BOT framework. The Directline secret used to authenticate the calling application. Is there any way to authrorize the authenticate the logged in user in the BOT framework securely?</p>
  
  <p>Thank you</p>