Botframework-emulator: Clicking "Sign In" on an OAuth Card opens the file explorer

Created on 16 Apr 2020  路  15Comments  路  Source: microsoft/BotFramework-Emulator

In the recent version 4.8.1 of Emulator,
I'm running the Authentication sample Bot, in that while Signing in , the emulator is not redirecting to a browser window to generate the token, instead it is opening the explorer window.

Is there any fix or workaround for this issue.

because of this issue I'm unable to debug my project, also this issue is not there in the previous version,

Bot Services Bug R10 customer-replied-to customer-reported

All 15 comments

Hey @dmvtech could you take a look at this one? Thanks

@JeganBas If not already done, can you confirm this reproduces after selecting Clear state from the File menu?

If so, can you please grab a fiddler trace. You can send to me at [email protected]

Even after clearing the state it's the same results, the emulator keep opening the explorer window instead of browser while signing in. I'm unable to use fiddler here. Suggest me a different solution please

I am able to reproduce. To clarify; it is opening File Explorer (explorer.exe).

Looks like a regression #1397

@tonyanziano

@dmvtech yes , its opening the File explorer only, what could be the fix for this ?

Thanks for looking into this @dmvtech .

I'll dig around a bit once I get an auth sample working. It's possible that something changed inside Web Chat and that's the cause, but that's just a hunch at the moment.

I tried to reproduce it, but I can't on my end 馃

image

This is on v4.8.1.

@JeganBas if you downgrade to a previous version, like 4.8.0 or 4.7, do you still experience this issue? If we could narrow it down to a certain version then we can look at the delta in the past commits and see if there is anything that might have caused it.

Hi @tonyanziano , I've downgarded to Emulator 4.7 and now i can able to sign In, so the problem is only in 4.8.1

Thanks for testing that out @JeganBas ,

We can take a look at what changed between 4.7 and 4.8.1 and see if there are any obvious commits that might have caused this behavior.

hi, if you set the path to ngrok in the emulator settings, the Oauth Card will show the expected result: the prompt to login:

image

After multiple tests, I noticed the issue happens when the path is empty.

I'm now able to reproduce this reliably.

Video for reference

This is indeed a bug in the sense that clicking the sign-in link should not open the file explorer, however, that being said, the following still remains true:

  • When reproducing this bug, as you can see in the video I posted, as soon as the sign-in card is generated, an error message is printed out in the Emulator log panel stating that the Emulator was unable to start up ngrok due to the ngrok path being wrong or blank in the app setting page. This is the correct behavior, and receiving an actual OAuth token without configuring ngrok is still impossible and will remain this way.

  • When ngrok is not configured, clicking on the sign-in card should still cause the Emulator to give the bot a token, however it will be an emulated token (not generated by the token service) prefixed with emulatedToken_ that the user can use for testing purposes

  • Once I fix this bug, the user will once again be able to get an emulated token from the Emulator when ngrok is not configured

This fix will be in the next nightly build (usually gets published around 11 PM PST).

@JeganBas @geo-msft

Please validate this issue has been fixed in the latest nightly build:

https://github.com/microsoft/botframework-emulator-nightlies/releases/tag/v4.9.0-137331

@tonyanziano thanks for updating, i will validate the new build and update you

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Spydernaz picture Spydernaz  路  5Comments

ravriel picture ravriel  路  3Comments

iMicknl picture iMicknl  路  6Comments

martinoss picture martinoss  路  4Comments

wlopez-enkoding picture wlopez-enkoding  路  5Comments