windows-authentication

No OWIN authentication manager is associated with the request

点点圈 提交于 2019-11-27 00:32:48
问题 After trying to enable owin & AspNet Identity to my Web Api project (in VS 2013 + .Net 4.5.1) I get the following error in each valid or unvalid(request to none exist controller) requests : <Error> <Message>An error has occurred.</Message> <ExceptionMessage> No OWIN authentication manager is associated with the request. </ExceptionMessage> <ExceptionType>System.InvalidOperationException</ExceptionType> <StackTrace> at System.Web.Http.Owin.PassiveAuthenticationMessageHandler

SVN Rights Management Tool using Windows Authentication method

老子叫甜甜 提交于 2019-11-26 23:25:29
问题 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? 回答1: 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

Authenticate Windows Authentication using Javascript

倾然丶 夕夏残阳落幕 提交于 2019-11-26 23:08:39
问题 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

using windows authentication with active directory groups as roles

a 夏天 提交于 2019-11-26 22:45:12
问题 I've read several questions on this topic, such as here, here, here and here; but none have provided a working solution in my case. What I want to do: Implement Windows authentication for a web app that is only used by our own employees. This way they should not need to log into the app, but already be authenticated by way of having logged into windows. Also, I need to restrict certain areas of the app, based on Active Directory Security Groups that the user may be assigned to. So I want to

Impersonate Domain User with Integrated Pipeline

浪尽此生 提交于 2019-11-26 22:34:36
问题 In an local Intranet environment, are we doomed to use "Classic" pipeline mode in our App Pool if we want to use Impersonate our Windows domain users, or is there a new way to declaratively "run as" them (so-to-speak)? My goal is to use Windows Authentication for local web applications on my Intranet so users can authenticate and run apps under their active directory account (principle). Every time I try this (Using the NetworkService identity of course), I get this error: 回答1: I wrote a

ASP.NET MVC3 and Windows Auth on IIS keeps redirecting to /Account/Login

梦想的初衷 提交于 2019-11-26 21:32:50
I'm running MVC3 and a windows auth web application. When I deploy to IIS6 it runs great until I hit a page that requires authentication. It then is auto-redirecting to /Account/Login when I have no trace of that in my application and my web.config is configured to windows auth. Any ideas? Here is my entire web.config file: http://pastie.org/1568510 Check whether you have WebMatrix.Data.dll and/or WebMatrix.WebData.dll deployed in the bin directory of your application. If they are there (and you know you don't use them) then try removing them and accessing a page that requires authentication.

WebAPI CORS with Windows Authentication - allow Anonymous OPTIONS request

蓝咒 提交于 2019-11-26 19:56:21
问题 I have a WebAPI 2 REST service running with Windows Authentication. It is hosted separately from the website, so I've enabled CORS using the ASP.NET CORS NuGet package. My client site is using AngularJS. So far, here's what I've been through: I didn't have withCredentials set, so the CORS requests were returning a 401. Resolved by adding withCredentials to my $httpProvider config. Next, I had set my EnableCorsAttribute with a wildcard origin, which isn't allowed when using credentials.

Authentication issue when debugging in VS2013 - iis express

梦想的初衷 提交于 2019-11-26 19:22:23
I'm trying to pick up the windows username when debugging in Visual Studio 2013. I am simply using: httpcontext.current.user.identity.name If I run this on my Dev Server it works fine, if I run it in debug mode on any previous version of Visual Studio it also works fine. My problems is - If i run this on visual studio 2013 I get an empty string. My web config is as follows. <system.web> <authentication mode="Windows"/> <identity impersonate="false"/> <authorization> <allow users="*"/> </authorization> <compilation debug="true" strict="false" explicit="true" targetFramework="4.0"/>

How to get the current user's Active Directory details in C#

ⅰ亾dé卋堺 提交于 2019-11-26 17:57:43
问题 I am working on an C# and ASP.Net application, that uses Windows Authentication. i.e. in Web.config: <system.web> <authentication mode="Windows" /> </system.web> I want to get details for the current user (full name, email address, etc) from Active Directory. I can get their pre Windows 2000 user login name (eg: SOMEDOMAIN\someuser ) by using string username = HttpContext.Current.Request.ServerVariables["AUTH_USER"]; I've worked out the LDAP query for the user, using their current login name

Unable to authenticate to ASP.NET Web Api service with HttpClient

為{幸葍}努か 提交于 2019-11-26 16:01:55
I have an ASP.NET Web API service that runs on a web server with Windows Authentication enabled. I have a client site built on MVC4 that runs in a different site on the same web server that uses the HttpClient to pull data from the service. This client site runs with identity impersonation enabled and also uses windows authentication. The web server is Windows Server 2008 R2 with IIS 7.5. The challenge I am having is getting the HttpClient to pass the current windows user as part of its authentication process. I have configured the HttpClient in this manner: var clientHandler = new