botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[MS Teams] Node.js: Sign-in Card link not working in Teams

Open RichMoeMSFT opened this issue 9 years ago • 10 comments

In Node.js bots, running in Teams, the Sign-in button / link is not working. Works on other channels.

Using sample: node/cards-RichCards

RichMoeMSFT avatar Jan 24 '17 21:01 RichMoeMSFT

@RichMoeMSFT Hey Richard. Do you have any update regarding this issue? I can confirm that signin button still doesn't work in Teams, however works in test chat on dev.botframework.com.

Thanks.

drudv avatar Mar 28 '17 16:03 drudv

Has there been any news on this? It doesn't work for C# bot either. I can see the sign in card as I would expect, but I can't click the button.
image

chris31389 avatar Apr 12 '17 13:04 chris31389

We filed a bug on this. The button action "signin" is not supported in Microsoft Teams. If you change the button type to "openUrl" (which in effect is what signin does anyway), you can get the Signin card to work.

RichMoeMSFT avatar Apr 14 '17 06:04 RichMoeMSFT

thanks for the update @RichMoeMSFT

nwhitmont avatar Apr 20 '17 23:04 nwhitmont

I can't seem to find postUrl in reference documentation (https://docs.botframework.com/en-us/node/builder/chat-reference/modules/botbuilder_d.html) or code (https://github.com/Microsoft/BotBuilder/search?utf8=%E2%9C%93&q=postUrl&type=)

Am I missing something or are you referring to openUrl?

juhamust avatar Apr 21 '17 09:04 juhamust

My bad, yes openUrl. Fixed above as well.

RichMoeMSFT avatar Apr 25 '17 15:04 RichMoeMSFT

@RichMoeMSFT, I tested openUrl in MS Teams Desktop and it works fine. ms-teams desktop

But i have checked in MS Teams Mobile app(ios) i just sends a "sent a card" response, and in android device is a blank response. microsoftteams-image

fkatada avatar May 25 '17 08:05 fkatada

for anyone that comes across this post, I have a simple implementation to switch the type of button to openurl for both Node and C# in #4768

JasonSowers avatar Jul 13 '18 21:07 JasonSowers

I still get this error with personal chat using Node. Apart from testing in team, is there a way to either fix or hack around for now? cause I'm keen to invoke onTurn after having authenticated.

tmhao2005 avatar Apr 12 '19 14:04 tmhao2005

It seems my domain was yet in the valid domains

tmhao2005 avatar Apr 13 '19 10:04 tmhao2005