web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Silent failure at auth...
Copilot Studio
Unanswered

Silent failure at authentication step

(0) ShareShare
ReportReport
Posted on by 28

I wrote a big question about this with pictures and links to resources, but it was deleted as 'spam'. So I'm going to try and ask again with less of all that in hopes it doesn't get deleted this time.

 

Long story short, I'm trying to set up a bot using PVA with manual authentication. We only want to use it with Teams, but don't want to use the 'teams only' authentication because we need access to the auth token. I've done my best to follow the 4 different MS documents that talk about setting this up, but for some reason while it works fine in the test panel of the PVA site, when I try it in teams it does everything that occurs before the authentication step then stops without further output.

I have the same question (0)
  • Kamrani Profile Picture
    on at

    Hi tdixon- I tested a bot with manual auth in Teams, and when I ping it, it logs me in. This is the output I get using a generic bot that is created using PVA:

    Kamrani_0-1657049261613.png

    Not sure why your original post was deleted. What do you see in Teams? Thx

  • tdixon Profile Picture
    28 on at

    I don't have required login turned on, since when I did have it turned on, I was getting basically nothing on the Teams end.

     

    Here's some shots of my setup:

    pva_auth.pngteams_auth.png

     

    Here's the login topic. I have 'v3' in there so I can tell that the details have actually changed. Sometimes it takes a long time for the PVA to publish, it seems.

    login_topic.png

     

    And here's what I see in Teams:

    teams_output.png

     

    It just stops after the first message. It's really frustrating that I can't find anywhere to debug the conversation flow, and maybe get some kind of error message.

  • tdixon Profile Picture
    28 on at

    Here's some details from the app registration in case there's something obvious I'm missing here.

     

    app_reg_overview.png

     

    app_reg_permissions.png

  • Kamrani Profile Picture
    on at

    I noticed that the Tenant Id field is empty in your case. Add that in and enable Require users to sign in. Test to see if that fixes the issue. 

     

    Kamrani_0-1657163534630.png

     

  • tdixon Profile Picture
    28 on at

    I copied my tenant ID from the app registration summary page, and turned on require users to sign in, as you suggested. It doesn't seem to have helped.

     

    pva_signin_required_conversation.png

  • Kamrani Profile Picture
    on at

    In the Azure Portal, under Expose an API, can you check to see if you have the values shown below in red? The last value for Client Id at the bottom must be the same as mine. These are for Teams Web and App clients. This help topic goes over it in detail. 

     

    Kamrani_1-1657213689219.png

     

     

  • tdixon Profile Picture
    28 on at

    Yes, that's one of the documents I read. I had those client IDs in there already. I did have the scope set to admin only, but changing it to admin and users doesn't seem to have changed anything.

     

    app_reg_exposeapi.png

  • Kamrani Profile Picture
    on at

    Does the bot work in PVA portal?

  • tdixon Profile Picture
    28 on at

    I had to set the app registration back to multitenant. I had set it to single tenant earlier as part of my own testing.

     

    But yes, it works just fine in the PVA portal, once the app registration is set to multitenant. It shows a button to log in, I get a popup tab with a code, which I paste back into the chat and I am logged in successfully.

  • Kamrani Profile Picture
    on at

    Could you republish your bot in PVA portal, uninstall it from Teams, and reinstall it?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 261 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 198 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard