windows-authentication

IIS express applicationhost.config security is reset every time a solutions is opened in VS2012

本秂侑毒 提交于 2019-11-30 03:16:33
问题 I have an MVC4 application been developed in VS2012 that uses forms authentication. [authentication mode="Forms"] [forms loginUrl="~/Account/Login" timeout="2880" /] [/authentication] It's using the default IIS 8.0 Express. Every time I open and run the app from within the VS I got the message: HTTP Error 401.2 - Unauthorized You are not authorized to view this page due to invalid authentication headers. I found out that to avoid this screen I have to change to 'true' the

Windows authentication for Intranet/Internet

你离开我真会死。 提交于 2019-11-30 02:44:52
I am developing an ASP.net web application for my company. Some users use this site in the internal network (Intranet) and some use the Internet site. I am using Windows Authentication mode. I need to find a way to not prompt Windows Authentication mode for an Intranet user and prompt Windows Authentication mode for an Internet user. How can I do this? Pierre-Luc Simard Based on what your are describing, Windows Authentication in IIS will do the trick. First some links: Technet as an article about the Windows Authentication in IIS here MSDN tells you how to use Windows Authentication with ASP

ASP.NET passing along Windows Authentication credentials

牧云@^-^@ 提交于 2019-11-30 02:32:34
问题 I've got an ASP.NET web application which uses Windows Authentication. This application needs to connect to another ASP.NET web service (which also uses Windows Authentication) and use the same credentials that it received from the user's browser. Can this be done and how? 回答1: I don't believe you can do this without Kerberos Authentication. You can't delegate credentials to another system. I think this will start to set you on the right track. 来源: https://stackoverflow.com/questions/1600521

Authentication failed because the remote party has closed the transport stream exception when getting a response from webservice

独自空忆成欢 提交于 2019-11-30 01:15:37
I am calling a third party service and when I ask for a response it throws out an exception that says "Authentication failed because the remote party has closed the transport stream exception". I think that there is a problem in sending credentials. I have even tried supplying new credentials. Here is the full code string get_url = "https://**.*******.com/com/******/webservices/public_webservice.cfc?wsdl&Method=CreateUser&SiteID=**&WSPassword=******&UserName=******"; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(get_url); request.MaximumAutomaticRedirections = 4; request

Windows Authentication and Angular 4 application

我与影子孤独终老i 提交于 2019-11-30 00:47:43
I am writing an Angular 4 application that needs to get some data from Asp.Net WebApi. We are using windows authentication for the WebAPI and I am wondering how I can pass user's windows identity from my Angular Application to WebApi. I've found couple examples that are involving nesting your application with MVC application but I would to keep UI away from MVC. Is there a way to do it without adding .net mvc to my Angular website? When you send your http request from Angular to your WebAPI you need to use RequestOptions({ withCredentials=true}) Here's a sample security service that calls an

Detect user logged on a computer using ASP.NET app

為{幸葍}努か 提交于 2019-11-30 00:12:48
问题 I want to develop an ASP.NET application that can detect the user logged on a Window Domain. These credentials are going to be used to logging on the ASP.NET application. How can I do this? Thanks! 回答1: In IIS, turn on Integrated Windows Authentication, and in code, if you use: Request.ServerVariables["LOGON_USER"] it will return the windows username of the logged in user, i.e. MYDOMAIN\MYUSERNAME 回答2: For ASP.net, you can probably use HttpContext.Current.User.Identity If IIS is configured

MVC4 Windows Authentication Redirect to Account/Login

£可爱£侵袭症+ 提交于 2019-11-29 23:00:48
问题 I am setting up Windows Authentication in an MVC 4 application using Visual Studio 2013 and using the IIS Express Development Server . However, I get redirected to /Account/Login (as if I were using forms authentication). I have no reference to WebMatrix in my bin folder (or anywhere) as described here: ASP.NET MVC3 and Windows Auth on IIS keeps redirecting to /Account/Login. I have added these entries to appSettings in the web.config as suggested by this post: MVC5 Redirects to Login.aspx

asp.net via kerberos integrated windows authentication to sql server

Deadly 提交于 2019-11-29 22:58:28
问题 Please, can someone PLEASE give a simple, straight-forward way to enable ASP.NET > Kerberos > Sql Server? We have clientMachine > webServer > databaseServer. The client is insistent that the site must pull the windows login and not prompt, hence the need for Kerberos and Integrated Authentication. It also MUST impersonate the user onto the db server, inducing a double-hop. Our domain is a Windows 2003 domain, which as far as I can tell online, means Kerberos is enabled. And on a domain-joined

MVC - Mixed Auth - OWIN + Windows Auth

吃可爱长大的小学妹 提交于 2019-11-29 22:23:55
I need to have both windows authentication and owin (forms) authentication but i can't get it to work. Probably the best option is to have two sites that have different authentication methods. I found a project that does what i want: MVC5-MixedAuth . But it uses IISExpress and i can't get it to work with Local IIS. The error that occurs is: Request filtering is configured on the Web server to deny the request because the query string is too long. If i remove all my ConfigureAuth() method inside Startup.Auth.cs it doesn't throw the error but i can't login because it is needed to do

How to use Windows login for single-sign-on and for Active Directory entries for Desktop Java application?

孤街浪徒 提交于 2019-11-29 22:17:19
I'd like to have my desktop Java application to have single sign on related to Active Directory users. In two steps, I'd like to: Be sure that the particular user has logged in to Windows with some user entry. Check out some setup information for that user from the Active Directory With Java: Programatic Way to Determine Current Windows User I can get the name of the current Windows user but can I rely to that? I think the System.getProperty("user.name") won't be secure enough? ("user.name" seems to be got from environment variables, so I can't rely on that, I think?) Question Authenticating