Skip to main content

Notifications

Power Platform Community / Forums / Bot Administration / Having issues with Azu...
Bot Administration
Unanswered

Having issues with Azure AD v2 login in teams deployment

Posted on by 8

Hey all, I have been having some issues with the Teams PVA utilizing Azure AD v2 connection. I am able to sign in fine in the test bot, but once I deploy to production the signin button doesn't show up so users can't sign in to authenticate.


Test bot
Me: Hi
Bot: Hello! To be able to help you, I’ll need you to sign in.

Bot: To continue, please login <Login Button>

 

Published bot:

Me: Hi
Bot: Hello! To be able to help you, I’ll need you to sign in.

*Crickets*

 

  • durak86lol Profile Picture
    durak86lol 16 on at
    Re: Having issues with Azure AD v2 login in teams deployment

    Thanks, that worked!

  • HenryJammes Profile Picture
    HenryJammes on at
    Re: Having issues with Azure AD v2 login in teams deployment

    Hi all,

     

    SSO of a PVA bot deployed to Teams works with manual auth (AAD v2), but the catch I believe is to deploy it manually though the Teams zip file that contains the app manifest, not the one-click deployment option.

     

    Let me know if that helps.

    Henry 

  • durak86lol Profile Picture
    durak86lol 16 on at
    Re: Having issues with Azure AD v2 login in teams deployment

    I have exactly same problem, can someone from @microsoft look into it?

  • Thess0104 Profile Picture
    Thess0104 7 on at
    Re: Having issues with Azure AD v2 login in teams deployment

    I am experiencing this exact same issue.

    No concrete resolution has helped

  • Redbird Profile Picture
    Redbird 41 on at
    Re: Having issues with Azure AD v2 login in teams deployment

    Aren't you already logged in automatically in Teams?

    I may be off-base but I implemented the Teams channel for a PVA and enabled Security via Settings-Security-Authentication-Only for Teams.

    Of course, this disables all other channels, I guess.

  • Talsmonkey Profile Picture
    Talsmonkey 8 on at
    Re: Having issues with Azure AD v2 login in teams deployment

    I'm having the same problem. Works on the web site against Azure AD, but not in teams. Just say I need to login, but doesn't give me a button or other options to do that.

     

    Kind regards,

    Charl Marais

  • ikhan_24 Profile Picture
    ikhan_24 31 on at
    Re: Having issues with Azure AD v2 login in teams deployment

    @smodderman Did you find a solution to your problem? I am having the exact same problem.

  • smodderman Profile Picture
    smodderman 8 on at
    Re: Having issues with Azure AD v2 login in teams deployment

    We are trying to use single sign on, and it does work when using the test bot window. the problem comes when we publish the test bot, the authenticate card doesn't run but the topic the authenticate card is in runs.


    Screenshot 2024-02-23 131818.png
    This works once azure ad v2 auth is setup

     

    Screenshot 2024-02-23 132012.png

    Same bot, but published conversations don't show the login button / won't login.

  • renatoromao Profile Picture
    renatoromao 6,762 on at
    Re: Having issues with Azure AD v2 login in teams deployment

    Hi @smodderman ,

     

    The authentication for PVA Teams bots is different.

    Look at the documentation:

    Bots created in Microsoft Teams come with authentication pre-configured to use Teams authentication.

    You can also enable user authentication within a bot conversation so the bot can:

    • Get a user's basic properties such as username and ID in bot variables.
    • Prompt a user to sign in using an authentication node, so the bot can retrieve the user's information from a back-end system.
    • Use single sign-on (SSO) on web channels so your users don't need to sign in manually.

    Add user authentication to chatbot topics in Microsoft Teams - Power Virtual Agents | Microsoft Docs

Helpful resources

Quick Links

Exciting News for Copilot Studio Communi…

Get ready to experience a whole new level of engagement with the Copilot Studio…

Celebrating the May Super User of the…

LaurensM is an exceptional contributor to the Power Platform Community…

Check out the Copilot Studio Cookbook…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 137,998

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,059

Leaderboard

Featured topics