question

MrEdge-3552 avatar image
0 Votes"
MrEdge-3552 asked MrEdge-3552 edited

Help with Azure B2C setup

Very confused with all the Azure acronyms and how to get this to start working as i need.

Ive done a lot of research but either im missing a part of the puzzle or the tutorial assumes ive set this up some other way.

Im using Visual Studio 2022 and have installed Azure.

What i would like to do is have Azure B2C to allow a user to setup an account using Google or some service which could be used to login with to allow access to my app.

I started with trying to find a starting point which eventually landed me at

https://docs.microsoft.com/en-us/azure/active-directory-b2c/tutorial-create-tenant

seems to me its about Active Directory (as in one for organisations to verify users access in a network) however attempting to sign up gives a few warnings about credit and 30 days free etc so i dont think this is what i need? Besides most of the steps seem different when following a tutorial online.

It then goes on about a tenant but i dont know if this is what i need in order to setup my application in VS2022.

I cant seem to find any code relating to this but i can only assume this is due to me being new in this and possibly searching the wrong criteria.

Finally i checked YouTube but again most seem to show code rather than explaining how to setup the primary Azure B2C account (if needed?) which would carry out the auth of user logging in or could it be im on the wrong path.

Could anyone point me to the right direction, what account do i need for Azure B2C in order to get things moving so they can login using a Google account or similar and how do i set this up in Visual Studio 2022 (i dont seem any templates for Azure B2C)?

azure-active-directoryazure-ad-b2cazure-ad-tenant
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JamesHamil-MSFT avatar image
0 Votes"
JamesHamil-MSFT answered

Hi @MrEdge-3552 , welcome to Azure! I'll try to answer any questions you have here, but feel free to ask more if you have any or I miss something.

First, are you using Visual Studio or Visual Studio Code? I recommend Visual Studio Code. You can follow the setup document here to integrate it.

To allow a user to sign-up you need to create a sign-up/sign-in flow. This is using Azure B2C, which you may be unfamiliar with. B2C stands for "business-to-consumer."

"Azure Active Directory B2C provides business-to-customer identity as a service. Your customers use their preferred social, enterprise, or local account identities to get single sign-on access to your applications and APIs."

Using this you can have users create account and sign in using your domain name such as "yourtenant@onmicrosoft.com." However, you want a Google login but you have to configure it first. You can do this by adding Google as an identity provider.

Everything else you need should be covered in those documents I listed. Let me know what questions you have after reading those or if I missed anything/need to elaborate!

If this answer helped you please mark it as "Verified" so other users can reference it.

Thank you,
James


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MrEdge-3552 avatar image
0 Votes"
MrEdge-3552 answered MrEdge-3552 edited

Edit: I just realised im not entitled for an free Azure subscriptions. I think i may have enabled this a few years ago when Azure was considered but didnt really use it. Is there any way around this as its for learning purposes only at this stage?

Thanks let me read through those documents.

So as I understand, in using Visual Studio 2022, but have Visual Code installed too. I prefer Visual Studio 2022 but not sure what advantage Visual Studio code gives?

For the sign in/sign up flow, could I use any account to test this without having to pay? I don't follow what you mean by signing up with yourtenant@onmicrosoft.com - do you mean I use my account that I'm using now to write this message as the main account to setup B2C?

Finally when I add Google to this portal, I assume I could use my own website to allow users to login to my website but using their own Google account they have set up themselves?

Thanks for your help. I will mark as answer once I have read the documents and have it working as expected.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.