Following the steps here to add authentication to a messaging extension:
Working with a messaging extension bot running 2 static pages:
https://.ngrok.io/startAuth.html
https://.ngrok.io/endAuth
Returns the following card: (using teams app on mac)
Dec 29 2020 07:30 PM - edited Dec 30 2020 06:35 AM
Adding authentication to messaging extension and testing locally. Unable to access openUrl hosted on ngrok
Following the steps here to add authentication to a messaging extension:
Working with a messaging extension bot running 2 static pages:
https://.ngrok.io/startAuth.html
https://.ngrok.io/endAuth
Returns the following card: (using teams app on mac)
return
{
"composeExtension":{
"type":"auth",
"suggestedActions":{
"actions":[
{
"type": "openUrl",
"value": "https://*.ngrok.io/startAuth.html",
"title": "Sign in to this app"
}
]
}
}
}
After clicking the login button on the card it displays the following error: Something went wrong, please try again.
The *.ngrok.io domain is already added to the validDomain list
Additional Notes:
using nodejs / botbuilder / TeamsActivityHandler
Dec 30 2020 03:06 AM - edited Dec 30 2020 03:07 AM
Are you able to access the URL from browser? Could you please check the URL from the browser?
Thanks,
Varaprasad.
-------------------------------------------------------------------------------------------------
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.
Dec 30 2020 06:37 AM
Hi @Varaprasad-MSFT,
Thanks for the quick response,
Yes I can access both static pages from my chrome browser.
Jan 05 2021 03:52 AM
@MatthewCohen - Could you please share your manifest?
Jan 05 2021 02:59 PM
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.8/MicrosoftTeams.schema.json",
"manifestVersion": "1.8",
"version": "1.0.0",
"showLoadingIndicator": true,
"id": "f9083eaf-0ae8-4331-9653-10080cc36b54",
"packageName": "{{PACKAGE_NAME}}",
"developer": {
"name": "brightidea",
"websiteUrl": "https://{{HOSTNAME}}",
"privacyUrl": "https://{{HOSTNAME}}/privacy.html",
"termsOfUseUrl": "https://{{HOSTNAME}}/tou.html"
},
"icons": {
"color": "color.png",
"outline": "outline.png"
},
"name": {
"short": "BI Test 1",
"full": "BI Test 1"
},
"description": {
"short": "TODO: add short description here",
"full": "TODO: add full description here"
},
"accentColor": "#D85028",
"bots": [
{
"botId": "aa38ad8c-5635-49c2-80b6-e3b0d2b47333",
"scopes": [
"team",
"groupchat",
"personal"
],
"supportsFiles": false,
"isNotificationOnly": false
}
],
"composeExtensions": [
{
"botId": "aa38ad8c-5635-49c2-80b6-e3b0d2b47333",
"canUpdateConfiguration": false,
"commands": [
{
"id": "createIdea",
"type": "action",
"title": "Create Idea",
"description": "Create an idea from a message",
"initialRun": true,
"fetchTask": true,
"context": [
"message"
],
"parameters": [
{
"name": "param",
"title": "param",
"description": ""
}
]
}
]
}
],
"permissions": [
"identity",
"messageTeamMembers"
],
"validDomains": [
"1e5e8f0306b0.ngrok.io"
]
}
Jan 06 2021 05:18 PM
Jan 13 2021 07:15 AM