question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v3 authentication tutorial not working with AAD v2 in the v3 Emulator

See original GitHub issue

repo steps:

  1. Follow the instructions in the v3 Authentication tutorial.
  • When creating the AAD v2 application, use the following scopes: openid, Mail.Read, profile, and User.Read.
  • When you set up the OAuth connection settings for your bot channels registration service, set scopes to openid Mail.Read profile User.Read.
  • To verify that your settings are correct, click Test connection near the top of the page before clicking Save.
  1. Clone the Microsoft/BotBuilder repo and open CSharp\Samples\Microsoft.Bot.Builder.Samples.sln per the instructions.
  2. Set Microsoft.Bot.Sample.AadV2Bot.csproj as your startup project.
  3. Update the project’s Web.config file.
  4. Build the project and fix any build errors. (I’m trying to get Chris to fix these in the repo.)
  5. Run the project.

issues:

  • Open the v4 Emulator, connect to your bot, type me, and click Sign in on the OAuth card.
    • Get a Sorry, my bot code is having an issue. message.
  • Open the v3 Emulator, and connect to your bot.
    • Type me and click Sign in on the OAuth card.
    • If you get a Sorry, my bot code is having an issue. message, delete your user profile, end the conversation, reconnect to the bot, and type me and click Sign in on the OAuth card again.
  • Well, today I’m still getting a Sorry, my bot code is having an issue., but last week I was able to begin authentication. However,…
    • Singing in with my PIN generated one type of error in the resulting browser page.
    • Singing in with my password and two-factor authentication resulted in a different error.

related:

and possibly more.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
JonathanFingoldcommented, Aug 6, 2018

@SuperJMN , here’s a screenshot for you. Note that the Messaging endpoint needs to use HTTPS.

authcapture

0reactions
SuperJMNcommented, Aug 6, 2018

@JonathanFingold could you please, post a screenshot of the Azure configuration page where you need to set the https endpoint? I’m facing the same problem. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add authentication to your Teams bot - Microsoft Learn
Learn how to enable authentication using third-party provider to a bot app in Teams using Azure AD.
Read more >
Connect your app to the Authentication Emulator - Firebase
For security reasons, the Authentication emulator issues unsigned ID tokens, which are only accepted by other Firebase emulators, or the Firebase Admin SDK ......
Read more >
Authentication in Kotlin Android apps with Azure AD B2C
This has been on our bucket list for a while and we finally got the chance to do it. On this stream, we...
Read more >
Azure AD authentication - tutorials - Ionic Forum
Hello, I'm looking for a tutorial on how to enable Azure Active Directory ... Directory Authentication Library (ADAL) for Ionic 3. 2 Likes....
Read more >
Authentication - Expo Documentation
Expo can be used to login to many popular providers on iOS, Android, and web! Most of these guides ... Get Your Config,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found