jamesemann / bot-framework-v4-intro-dotnet-core

Demo code accompanying YouTube series 'intro to bot framework - botbuilder v4'
https://www.youtube.com/channel/UCslMhoVYpWamAZNXNxARhhA
35 stars 44 forks source link

Using Azure Ad B2C user's auth with BotFramework V4 in dotNet Core #4

Open LaurentTermeau opened 5 years ago

LaurentTermeau commented 5 years ago

Hello James, Do you have any advice on how it would be possible to implement a user authentication within Bot Framework V4 in dot Net core. I've seen testes and tried to adapt some of the official sample, but with no much success so far. Thanks, Laurent.

arafattehsin commented 5 years ago

Hi Laurent

Can you please elaborate your authentication scenario. Are you trying to authenticate using Azure AD? If yes then I may tell you the steps or guide you towards that.

Thanks

LaurentTermeau commented 5 years ago

Here is what I want to achieve : À user of my bot at one step in the conversation will have to register some I formation. To do so, I offer a way to register to my application so that every time he comes back, he can retrieve, update and create new set of information. I Want to use Azure ad b2c as the way for the user to authenticate and register onto my app. He might want to use its favorite social network credentials to do so.

So I'd like to know how to implement an Azure ad b2c sign-up-sign-in, login, reset password, edit profile from within my bot developed with bot framework v4 under dot et core.

Laurent

Envoyé par Microsoft 365.


From: Arafat Tehsin notifications@github.com Sent: Tuesday, May 14, 2019 2:25:33 PM To: jamesemann/bot-framework-v4-intro-dotnet-core Cc: LaurentTermeau; Author Subject: Re: [jamesemann/bot-framework-v4-intro-dotnet-core] Using Azure Ad B2C user's auth with BotFramework V4 in dotNet Core (#4)

Hi Laurent

Can you please elaborate your authentication scenario. Are you trying to authenticate using Azure AD? If yes then I may tell you the steps or guide you towards that.

Thanks

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jamesemann/bot-framework-v4-intro-dotnet-core/issues/4?email_source=notifications&email_token=ACSFUAGY6ATMXIQAFMDZ4NDPVKVT3A5CNFSM4HMSLAXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVLJZUQ#issuecomment-492215506, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACSFUAEFXZOZPIZDPLXTG4TPVKVT3ANCNFSM4HMSLAXA.

arafattehsin commented 5 years ago

Will this work for you?

  1. https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-authentication?view=azure-bot-service-4.0&tabs=aadv1%2Ccsharp%2Cbot-oauth
  2. https://dhina.org/2019/04/29/authenticate-bot-with-dynamics-365/
LaurentTermeau commented 5 years ago

Hi, thanks very much for getting back to me.

Unfortunately, these two articles do not really address the question I have : Azure AD B2C is really different from traditional Azure Active Directory. And I have already tried the one for “adding authentication to a bot”.

Thanks, Laurent.

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10


From: Arafat Tehsin notifications@github.com Sent: Wednesday, May 15, 2019 2:22:43 AM To: jamesemann/bot-framework-v4-intro-dotnet-core Cc: LaurentTermeau; Author Subject: Re: [jamesemann/bot-framework-v4-intro-dotnet-core] Using Azure Ad B2C user's auth with BotFramework V4 in dotNet Core (#4)

Will this work for you?

  1. https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-authentication?view=azure-bot-service-4.0&tabs=aadv1%2Ccsharp%2Cbot-oauth
  2. https://dhina.org/2019/04/29/authenticate-bot-with-dynamics-365/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jamesemann/bot-framework-v4-intro-dotnet-core/issues/4?email_source=notifications&email_token=ACSFUAHOEHU45I5O6AZALQDPVNJVHA5CNFSM4HMSLAXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVNE56A#issuecomment-492457720, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACSFUAAHRQVEOLW4F2RYQYTPVNJVHANCNFSM4HMSLAXA.