title: BOT framework External client authentication
body: <p>I launch the client web application from the BOT framework to process the thrid party authentication. The client application process the the third party authentication using OAuth and Owin. Is there any way to send the useridentity back to the BOT framework?
   and able to get the access token from the client browser. But the same api call is not working from the BOT framework or from other client. (Ex: Httpget (clientappurl/api/GetToken)</p>
  
  <p>Any ideas?</p>
  
  <p>//api/GetToken ---GET</p>
  
  <pre><code>      public string GetToken()
  {
  
     var identity = new ClaimsIdentity (User.Identity.AuthenticateType)
        identity.AddClaim ("sub", User.Identity.GetUserName()))
        AuthenticationTicket ticket  = new AuthenticationTicket (identity, 
        AuthenticationProperties());
        string token = Startup. OAuthOptions.AccessTokenFormat.Protect(ticket);
        return token;
  
  }
  </code></pre>