When we got the project requirements initially, there was nothing about windows authentication. The requirements where fairly simple, so we thought of implementing it using AngularJS/Bootstrap.
Now there is a requirement that certain active directory group should not have access to a button/functionality while rest should have it.
Can you please let me know what bare bone code I need to include to have windows authentication in this project.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
112 Points
112 Posts
Windows Authentication in AngularJS project
Dec 22, 2015 10:43 PM|dbqasp|LINK
Hi,
When we got the project requirements initially, there was nothing about windows authentication. The requirements where fairly simple, so we thought of implementing it using AngularJS/Bootstrap.
Now there is a requirement that certain active directory group should not have access to a button/functionality while rest should have it.
Can you please let me know what bare bone code I need to include to have windows authentication in this project.
Thanks!
All-Star
40535 Points
6233 Posts
Microsoft
Re: Windows Authentication in AngularJS project
Dec 23, 2015 03:03 AM|Fei Han - MSFT|LINK
Hi dbqasp,
Firstly, please refer to the following article to implement Windows Authentication.
http://www.asp.net/mvc/overview/older-versions-1/security/authenticating-users-with-windows-authentication-cs
Besides, if you are using Web API with your SPA, you could refer to this.
http://www.asp.net/web-api/overview/security/basic-authentication
Best Regards,
Fei Han
Member
112 Points
112 Posts
Re: Windows Authentication in AngularJS project
Dec 23, 2015 02:26 PM|dbqasp|LINK
Hi Fei Han,
My project has a bunch of aspx (containing pure html code), js and asmx web service files. I dont have any controller in c#
The first link you sent has the home controller in c#. Do I really need that?
I already have an angularjs controller something like this
I am using asmx instead of web api.
Please suggest your thoughts?
Thank you
None
0 Points
5 Posts
Re: Windows Authentication in AngularJS project
Dec 28, 2015 05:57 PM|john.angularjs|LINK
asmx is dead use web api
Angularjs Training in Chennai
Angularjs Course