Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connecting a mvc 5 application to ACS in Azure?

Does anyone know how to connect an MVC 5 application in Visual Studio 2013 to an Azure Access Control Service(ACS)? In Visual Studio 2012 it's possible to do this in Identity and Access Tool, but there is no such in Visual Studio 2013.

Thank you in advance for any help you can provide,

/Steve

like image 405
stallo Avatar asked Nov 05 '13 08:11

stallo


2 Answers

Unfortunately, there's no way that I know of to add authentication to a VS2013 project after you've created it, but you can add it on project creation.

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

You then want to choose "Organizational Accounts" and choose "On-Premises" from the drop-down menu. I know ACS isn't what you were normally think of as "on-premises" but that's what you want. Then enter your metadata document URL. You can leave the other spot blank or fill it in if you want. The metadata document URL is the FederationMetadata.xml file found in the ACS management portal under "Application integration."

Once you set that up, you may need to adjust your Web.config audience URLs to make everything match what you have in the Azure ACS.

like image 152
jeffaudio Avatar answered Sep 20 '22 10:09

jeffaudio


Encountered the same problem. Was always returned back to "Configure Authentication". So I tried creating a new user in Azure Active Directory and made it a global administrator with the type New user in your organization. I tried the new user account and it worked. Hope this helps you also.

like image 26
Jelard Macalino Avatar answered Sep 18 '22 10:09

Jelard Macalino