I am building a PVA Bot in copilot studio and using OAuth2 Authentication and SharePoint as Data source. Bot keeps asking me
"Hello! To be able to help you, I’ll need you to sign in" even after entering validation code.
Hello, I just changed the setting to "Authenticate with Microsoft" and it seems to be working.
Hi, were you able to get this resolved? I have all of my authentication and SSO set up to the documentation, but I am still getting this login loop (in Teams). In the test pane in copilot studio, I can get farther than just the login response, but I don't get generative responses.
Hello, I'm also facing this issue. Please share if/how it's fixed?
Hello,
I had something similar but solved it in the following way :
- The error was triggered because I had a topic that triggered on each input that would intercept the user question and use generative AI to solve it.
- When I sent my code to validate my login, the message was triggered by the topic described up above.
- Since I wasn't logged in, the generative answer node would fail (I couldn't access charepoint).
- Since I failed, the copilot restarted the login operation.
And so on...
Try checking that you have no topic that intercepts your login credentials (exemple : topics which trigger on every input) and try to check that you are not using login info before logging the user in (example : saying "hi [username]" before you even know the username.
Hope it helps.
Have a great day.
Hello, were you able to find a solution? I'm facing the same issue now
Yeah, I've meticulously followed the instructions for setting this up in our tenant and can confirm. It does not work
Maybe your sign-in topic is getting re-triggered? Can you switch tracking to "on" and verify?
Also, can you share a screenshot of your copilot's security settings with the sensitive details removed?
@adilei its still keeps asking to login in testing canvas. Asking to copy validation code. Upon entering validation code again asks To continue, please login
Can you share the app registration details and copilot authentication settings?
SSO in Teams or Web requires a specific setup, otherwise it's not going to work:
1 .Configure single sign-on for the Microsoft Copilot Studio app in Teams - Microsoft Copilot Studio | Microsoft Learn,
2. Configure single sign-on with Microsoft Entra ID - Microsoft Copilot Studio | Microsoft Learn
Both testing canvas and test website option from copilot studio. No i have not set up any sso , just published in teams channel.