Connect mvc 5 app to ACS in Azure?

Does anyone know how to connect an MVC 5 application in Visual Studio 2013 to Azure Access Control Service (ACS)? In Visual Studio 2012, this can be done in the Identity and Access Tool, but in Visual Studio 2013 there are none.

Thanks in advance for any help you can provide,

/ Steve

+6
source share
4 answers

The same problem was detected. Always returned back to "Configure Authentication". So I tried to create a new user in Azure Active Directory and made him a global administrator with the type of new user in your organization. I tried a new user account and it worked. Hope this helps you too.

+6
source

Unfortunately, I do not know how to add authentication to the VS2013 project after creating it, but you can add it when creating the project.

Create an ASP.NET project, and then click Change Authentication when it prompts you to select a template.

Then you can select "Organization Accounts" and select "Rooms" from the drop-down menu. I know that ACS is not what you usually consider "local", but it is what you want. Then enter the URL of the metadata document. You can leave another place empty or fill it if you want. The metadata document URL is the FederationMetadata.xml file, which is located on the ACS Management Portal in the Application Integration section.

Once you configure this, you may need to configure the Web.config audience URLs to match what you have in Azure ACS.

+4
source

You can create a project in VS2013 at will. Then open it in VS 2012, where you have access to the Identity and Access Tool extension (if you installed it). I tried this with the Asp.Net VS2013 web application template. You need to select โ€œEnable ready-made web farms cookiesโ€ to make this work with Azure ACS. It would be better if this master worked in 2013, but he works this way.

I also found this post for this in 2013 http://gauravmantri.com/2014/03/19/using-windows-azure-access-control-service-in-mvc-5-application-using-visual-studio- 2013 / . However, the 2012 master is definitely simpler.

+1
source

Not sure if this can help, but you can look at this:

Develop ASP.NET Applications with Windows Azure Active Directory

0
source

Source: https://habr.com/ru/post/957409/


All Articles