Adding Authentication to my Chat Bot ( MS Bot Framework v4 )

Apr 20 2020 1:29 AM
I'm developing a chat bot using MS bot framework v4 SDK in C#.
I've chosen Dispatch bot sample as my base, Since I'm using QnA maker and Luis. Now i want to add an authentication to access my bot. As per the sample Authentication Bot I've added all the dependency including the nuget packages, methods and classes in my bot project code, but still the authentication is not working for me, it throws an exception error and gives sorry something went wrong error. There could be some issue with the way of integration and calling the correct methods.
if anyone has solution or sample of a bot with both authentication and QnA Maker used, please do share me