Answered by:
Azure Active Directory for Simple ASP MVC Web App B2C

Question
-
Just getting started with securing my Web App with Active Directory. My Use case is to have users just need to log in with email address to default page of ASP site. Once they are authenticated they can access everything on the site.
On the administrative side I would like to set up groups for different client bases and have an administrator that can add / update / delete users just for the their group/agency,.
Seems straight forward. Hope it is to implement. Thanks in advance.
Thursday, May 17, 2018 9:39 PM
Answers
-
Hello,
I think based on your requirement, Azure Active Directory will work fine. Check out the steps in this document - Adding an Azure Active Directory by using Connected Services in Visual Studio. Let me know if this helps with your requirement.
Also once an AD Application is created, you can assign user and groups to the azure AD application to manage access. Check this document for the same - Assign a user or group to an enterprise app in Azure Active Directory
- Proposed as answer by MohitGarg_MSFT Friday, June 15, 2018 8:59 PM
- Marked as answer by DDL19 Tuesday, June 19, 2018 7:18 PM
Friday, June 15, 2018 8:59 PM
All replies
-
You may refer: Create an ASP.NET web app with Azure Active Directory B2C sign-up, sign-in, profile edit, and password reset which describes all your queries related to ASP.NET web app with Azure AD B2C.
--------------------------------------------------------------------------------------
If this answer was helpful, click “Mark as Answer” or Up-Vote. To provide additional feedback on your forum experience, click here
- Proposed as answer by Ajay Kadam Friday, May 18, 2018 3:48 AM
Friday, May 18, 2018 3:48 AM -
I have tried to follow that example and get error trying to run the example:
error : The 'Microsoft.Identity.Client 1.1.0-preview' package requires NuGet client version '2.12' or above, but the current NuGet version is '2.8.60318.667'
I have an unsecured MVC app now and want to make it secure. If I could know exactly what I need to add in what order would be appreciated. I followed this example and believe I have everything set up correctly on the active directory side..
Friday, May 18, 2018 2:03 PM -
Got past that now....
What should I have for the login page for this example?
Friday, May 18, 2018 2:21 PM -
Are you referring to handling errors section for the login page?
What should I have for the login page for this example?
Could you please elaborate more on your scenario.
- Edited by Ajay Kadam Saturday, May 19, 2018 10:58 AM
Saturday, May 19, 2018 10:57 AM -
I got past this... I now hit the login button and the page just refreshes and the sign in sign out goes away. Not sure this is the default app desired behavavor…
To recap … I have a simple app that all I want to do is have users be authenticated to the root directory of a asp.net web app. If they are autheniticated they can do everything on the site. Not seeing a straight forward example to show me how to do that....
Monday, June 4, 2018 5:56 PM -
Hello,
I think based on your requirement, Azure Active Directory will work fine. Check out the steps in this document - Adding an Azure Active Directory by using Connected Services in Visual Studio. Let me know if this helps with your requirement.
Also once an AD Application is created, you can assign user and groups to the azure AD application to manage access. Check this document for the same - Assign a user or group to an enterprise app in Azure Active Directory
- Proposed as answer by MohitGarg_MSFT Friday, June 15, 2018 8:59 PM
- Marked as answer by DDL19 Tuesday, June 19, 2018 7:18 PM
Friday, June 15, 2018 8:59 PM -
Just checking in if you have had a chance to see the previous response. If that answers your query, do click “Mark as Answer” and Up-Vote for the same. If you have any further query then do let us know.Tuesday, June 19, 2018 10:15 AM
-
Actually ended up setting security up using Active Directory Business to Consumer. Should be noted that you will have to purchase an SSL key for your web site to use this option....Tuesday, June 19, 2018 7:18 PM
-
Glad to know that you got the answer for your query. We appreciate you for sharing the additional information.
Wednesday, June 20, 2018 6:43 AM