windows-authentication

Using fiddler with Windows Authentication

戏子无情 提交于 2019-11-28 02:29:23
问题 I am testing some proxy settings for our application but I need to test a proxy that requires Windows Authentication (or network credentials). For testing, I assigned the credential of the proxy to the network credentials System.Net.WebProxy proxy = new System.Net.WebProxy("127.0.0.1", 8888); proxy.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials; //proxy.Credentials = new System.Net.NetworkCredential("1", "1"); System.Net.WebRequest.DefaultWebProxy = proxy; Currently, I use

WCF REST client windows authentication

荒凉一梦 提交于 2019-11-28 02:24:56
I am following below example but getting Unauthorized 401 error on server side. https://www.dotnetcurry.com/ShowArticle.aspx?ID=434 I tried below WCF REST Service with Windows Authentication and SSL WCF Windows authentication issue with REST service This is close to mine how to consume wcf rest service with windows authentication I have IService interface like below [OperationContract] [WebInvoke( Method = "POST", UriTemplate = "/Students/getStudents", BodyStyle = WebMessageBodyStyle.Bare, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] void GetAllStudents(); In

How to provide ntlm authentication while calling any url?

三世轮回 提交于 2019-11-28 02:00:58
I have a hosted url which authenticates using ntlm (windows Integrated authentication). I am on windows and using java 1.8 URL url = new URL("someUrl"); HttpURLConnection con = (HttpURLConnection) url.openConnection(); // con.setInstanceFollowRedirects(false); con.setRequestProperty("Content-Type", "application/json"); con.setRequestMethod("GET"); int responseCode = con.getResponseCode(); if (responseCode == HttpURLConnection.HTTP_OK) { // read response ... in.close(); }else{ System.out.println("Error while fetching reponse, recieved response code " + responseCode); } The above code used to

HttpContext.Current.User not populated with Windows Authentication enabled

折月煮酒 提交于 2019-11-28 01:53:24
问题 I have an asp.net intranet application using windows authentication. I created the application years ago with VS 2005, and the windows authentication bit was working perfectly. My web.config has the following (inside configuration -> system.web element): <authentication mode="Windows" /> <authorization> <deny users="?"/> </authorization> I test this in Firefox to confirm that the credentials are required, and indeed I'm prompted for my network credentials when first accessing the site, and I

SVN Rights Management Tool using Windows Authentication method

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 00:31:56
We're using VisualSVN Server as SVN server in Windows. But it has very limited abilities for managing rights. Also we couldn't use svn_access_file because our users are going to be authenticated using Windows Authentication method. Is there any tool to manage rights that uses/supports Windows Authentication? Lazy Badger it has very limited abilities for managing rights It has all abilities, that Subversion has per se. we couldn't use svn_access_file You can and must really, because Windows Authentication define only method of authentication, svn_access_file is authorization file and can refer

IIS7 Mixed Mode Authentication

拈花ヽ惹草 提交于 2019-11-28 00:31:47
问题 We're getting ready to start migrating some of our IIS6 sites to IIS7, and the application currently uses Forms Authentication. We have started getting some requests from various sites to use the Windows Authentication for the users. While this is easy enough to implement (and I've shown internally that there is no issue with the app, as expected) the question then is how to continue to keep Forms authentication for when Integrated Windows doesn't work. I've seen several walkthroughs on how

Windows authentication - Kerberos or NTLM (Negotiate oYICO…)

▼魔方 西西 提交于 2019-11-27 22:51:09
问题 I have problems with a single user in an intranet application. The client side is a WPF application which communicates with a ASP.Net Web API Web Service. The client sends HTTPS GET and POST requests using HttpClientHandler handler = new HttpClientHandler() { AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip, UseDefaultCredentials = true, PreAuthenticate = true }; On IIS Windows authentication is enabled with NTLM and Negotiate providers. The system works for

Authenticate Windows Authentication using Javascript

只谈情不闲聊 提交于 2019-11-27 22:17:13
I have to transfer my client from one website to another website. This happens in client side. In this 2nd website, its using windows basic authentication system. So It popups the login window. I need to omit this Popup window and authenticate my client on 2nd website using javascript and then redirect him to 2nd website. There is no security issue even I put credentials in javascript file since this whole system is running in Intranet. So How to authenticate client on 2nd website ? I found this thread How can I pass windows authentication to webservice using jQuery? But it does not work. When

Use Anonymous authentication in MVC4 on single controller when the whole application uses Windows Authenticaion

北城余情 提交于 2019-11-27 22:06:50
I have an MVC4 Web application which uses Windows Authentication, that is in web.config I have <authentication mode="Windows" /> And that works fine and everything is ok. However now I need a controller (an Web API controller in fact) that should be accessed anonymously from a third party component. The problem is that every time I want to invoke this method it requests user credentials. I tried putting AllowAnonymous attribute to controller and methods but it was not successful. [AllowAnonymous] public bool Get(string Called, string Calling, string CallID, int direction) I checked on both IIS

How can I run Internet Explorer Selenium tests as a specific domain user?

*爱你&永不变心* 提交于 2019-11-27 21:15:23
问题 I have a ASP.NET MVC website that uses Windows Authentication to control access. I would like to have a specflow selenium test that checks the configuration is correct by attempting to visit the site as a non-authorised user. As we're using domain accounts to control access there isn't a username/password login screen. The credentials of the current user are automatically passed to the site by the browser. So for my Selenium test I need to be able to run Internet Explorer as a specific user.