Bot Authentication on Adaptive Card button click event

Occasional Contributor

Hi All,


Our application used to send notification as adaptive card, to MS Teams users via bot. The application has been developed through C#.


The button click should perform bot authentication.


We have created a button with the below code.


Actions =
new AdaptiveSubmitAction()
Type = AdaptiveSubmitAction.TypeName,
Title = "Click Here",


How to add the bot authentication on button click event of adaptive card? 


Kindly suggest.

2 Replies
best response confirmed by maheshkumargunasekaran (Occasional Contributor)

Signin action type initiates an OAuth flow that permits bots to connect with secure services.
Please follow below documentation to see how the flow works:
Microsoft Teams Authentication flow for bots - Teams | Microsoft Docs

You can share your 


Prasad Das 

Teams Dev Community Response 

If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.