Adding authentication to messaging extension and testing locally. Unable to access openUrl hosted on ngrok

Matthew Cohen 26 Reputation points
2020-12-29T21:44:19.913+00:00

Following the steps here to add authentication to a messaging extension

https://learn.microsoft.com/en-us/microsoftteams/platform/messaging-extensions/how-to/add-authentication

Running 2 static pages:
https://.ngrok.io/startAuth.html
https://
.ngrok.io/endAuth

LoginCard:

return  
    {  
      "composeExtension":{  
        "type":"auth",  
        "suggestedActions":{  
          "actions":[  
            {  
              "type": "openUrl",  
              "value": "https://*.ngrok.io/startAuth.html",  
              "title": "Sign in to this app"  
            }  
          ]  
        }  
      }  
    }  

Using card to access first static page to kick off authentication returns error:
After clicking login button:
Something went wrong, please try again.

The *.ngrok.io domain is already added to the validDomain list

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,584 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,053 questions
0 comments No comments
{count} vote

Accepted answer
  1. JimmyYang-MSFT 50,446 Reputation points Microsoft Vendor
    2020-12-30T03:05:35.183+00:00

    Hi @Matthew Cohen ,

    As we are mainly responsible for general issue of Microsoft Teams, your question which is involved in development is not in our scope.

    You could post a new case in Teams Developer forum to get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction.

    Thanks for your understanding!


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Manish-MSFT 256 Reputation points
    2021-01-04T05:56:34.363+00:00

    Can we have a discussion on call? Please write us at microsoftteamsdev@microsoft.com.

    1 person found this answer helpful.

  2. Manish-MSFT 256 Reputation points
    2021-01-11T06:47:25.51+00:00

    @MathewCohen-5316 : Any update or any doubts regarding authentication?