-
Notifications
You must be signed in to change notification settings - Fork 768
Closed
Labels
BugYour classic code defectYour classic code defect
Description
Version
What version of the Emulator are you using: 4.4.1
Describe the bug
When I try to run the 18.Bot-authentication sample, it didn't work correctly, until I checked the Use a sing-in verification code for OAuthCards emulator setting, forcing the use of a magic code. However, the point of the sample is to show how to avoid the need for a magic code.
To Reproduce
Steps to reproduce the behavior:
- Register an Azure AD v1 app for use with the No x86_32 Build #18 bot. (I haven't tried reproducing with a v2 app yet.)
- Create a channels registration bot and add an OAuth connection for the v1 app.
- Update the appsettings.json file for the bot.
- Run the bot locally.
- Attach to it in the Emulator, using the bot's app ID and password. (Use the http:// endpoint.)
- Attempt to exercise the bot and log in.
- Error: The log in flow never completes correctly. (It should ask if you want to see your token.)
- Select the Use a sing-in verification code for OAuthCards emulator setting and restart the emulator.
- Try connecting to the bot again and logging in.
- You get a magic code to use, but now the bot appear to otherwise work correctly, in that you are asked if you want to see your token.
Expected behavior
We shouldn't have to use a magic code to get this sample to work correctly.
Screenshots
Here's the bot behavior with using the magic code:
Additional context
- I've been trying to get this to work with help from @EricDahlvang and @mingweiw.
- This issue means the current authentication how-to documentation is in error and is blocked from being corrected.
[bug]
EricDahlvang and v-kydela
Metadata
Metadata
Assignees
Labels
BugYour classic code defectYour classic code defect