Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Answered

Login Button not working in MS Teams

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am able to configure user authentication and retrieve user's information via flow using graph APIs.

Solution works fine if I use the bot in a browser. I click on login and i get logged in.

However if the bot is called using MS team, the Login button does nothing.

it is simply stuck at following windows. Nothing happens when I click Login

PVAerror1.PNG

 

 

I referred to https://docs.microsoft.com/en-us/power-virtual-agents/publication-add-bot-to-microsoft-teams

and added token.botframework.com under the Valid domains section but still not help.

 

 

Any suggestions ?

  • jpiabrantes Profile Picture
    29 on at
    Re: Login Button not working in MS Teams

    "when the user receives and click on the button inside the MS Teams"

    The problem is that the button inside MS Teams does not show up, so the user can't click it.

  • jpiabrantes Profile Picture
    29 on at
    Re: Login Button not working in MS Teams

    @IgorCurl did you find a solution?

    I will make another post about this because I am using CoPilot Studio (not PVA) but experiencing the same problem.

  • IgorCurl Profile Picture
    4 on at
    Re: Login Button not working in MS Teams

    Hi,

    I still have this issue. When Teams Channel is enabled, and authentication is SSO, and we use Sharepoint website the issue occurs. If SharePoint is not used, user is not asked to authenticate. Issue is that Login button does not appear in Teams chat. Same result if we import the app as .zip or install it from the app store.

     

    IgorCurl_0-1703148032466.png

     

  • Verified answer
    pankajrai Profile Picture
    Microsoft Employee on at
    Re: Login Button not working in MS Teams

    I think we can consider this as resolved as PVA now as more Teams integration and Login happens automatically.

     

  • Mitbro Profile Picture
    10 on at
    Re: Login Button not working in MS Teams

    I am also having this issue... The prompt to authenticate appears in teams but the login button is missing, therefore, the user is unable to proceed further. It is as if the adaptive card for login isn't working in teams (it works fine in the test web bot in PVA.

     

    Has anyone else experienced this?

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at
    Re: Login Button not working in MS Teams

    Hi @pankajrai ,

     

    In the right way, when you use the Authentication action you can configure the next steps after this action inside the topic, and when the user receives and click on the button inside the MS Teams, automatically will continue the way if logged successfully.

  • pankajrai Profile Picture
    Microsoft Employee on at
    Re: Login Button not working in MS Teams

    Thanks for response @renatoromao  

    but how should we get it working... ?

     

    If the login button isnt working, how can we ask bot to procced further ? like calling a flow to get use details or use the authtoken for something else

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at
    Re: Login Button not working in MS Teams

    Hi @pankajrai ,

     

    You can see this part of the documentation inside the Authentication post:

    "Once the user enters their username and password in the prompt (hosted by the identity provider), they might be prompted to enter a validation code, depending on the channel. Some channels, such as Microsoft Teams, do not require the user to enter a validation code."

     

    Basically, when you click on the button, you chatbot recognize the authentication automatically.

    https://docs.microsoft.com/en-us/power-virtual-agents/advanced-end-user-authentication

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Copilot Studio - General

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 25

#1
Pablo Roldan Profile Picture

Pablo Roldan 25

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard