I tried to build a chat bot for my website but I am having trouble to get SSO work. it keeps asking me to Login to Get a Code, even I have already signed in.
I have 2 App registrations and I made the Teams work. and the Demo site work by using a code (as expected). Then I need to get the chatbot to work on my SharePoint site and don't force a user to Please enter this validation code into the chat window to complete the sign-in.
I used this sample code and my custom website.
Even I changed 3 values. clientId, authority, bot ID URL,
The chatbot still asks me to click the Login button to get a code.
I looked the Sign-in logs and found there is no sing-ins found in one of my App registrations. I don't know why the web script doesn't call that. Not sure what else I should look into. thanks for your time.