Skip to content

Conversation

tonyanziano
Copy link
Contributor

@tonyanziano tonyanziano commented Jun 26, 2019

Fixes #1544

===

This will fix the issue users were having when trying to authenticate via an OAuth prompt card as seen in samples 18 and 24.

ngrok.ts has been rewritten so that instead of being a singleton, it is now a class that can be instantiated multiple times to represent individual ngrok instances.

This fix checks to see if ngrok is already running when generating the postback URL for the OAuth sign in flow. If ngrok is already running, then that ngrok URL is used as the postback URL, if not, we start up a separate ngrok instance solely for the purpose of generating a URL that can be used as the postback URL. If we started up the separate ngrok instance for OAuth, we tear it down once the token response is received from the Bot Framework token server.

Copy link
Contributor

@justinwilaby justinwilaby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't get sample 18 to work without using a magic code
2 participants