windows-authentication

WCF Windows authentication issue with REST service

拈花ヽ惹草 提交于 2019-12-11 02:49:57
问题 I'm having some difficulty setting up a WCF service to run under Windows authentication. The service is only consumed via jQuery using ajax. IIS (version 6 on server 2003) is set to only allow Windows Authentication. web.config has the <authentication mode="Windows" /> tag. Here's the service section of the web.config: <system.serviceModel> <behaviors> <endpointBehaviors> <behavior name="AspNetAjaxBehavior"> <webHttp /> </behavior> </endpointBehaviors> <serviceBehaviors> <behavior name=

IIS7: How to define that windows authentication is turned on?

不问归期 提交于 2019-12-11 02:20:35
问题 IIS7: How to define that windows authentication is turned on? I know that two-stage authentication is not supported with IIS7 Integrated mode but I need to define whether windows authentication is turned on to enable spacial windows authenticated features. Can I define the IIS version from the ASP .NET code ? Can I define that windows authentication is turned on IIS 7 from the ASP .NET code ? 回答1: Just want to share the found solution. To get whether Windows Authentication is is enabled for

IIS - Missing Windows Authentication Feature [closed]

℡╲_俬逩灬. 提交于 2019-12-11 02:19:22
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . There's anyway to install/enable IIS Windows Authentication when it's missing in "Turn Windows Features On or Off" menu? I'm running an Win8 machine in a Local Workgroup. 回答1: I guess you need Pro or Enterprise edition 回答2: I ran into the same problem, so far tried these, you should also take a look at these

SecurityIdentifiers in Cassini-dev's NTLM authentication

偶尔善良 提交于 2019-12-11 00:54:46
问题 In this block of code in Cassini-dev's NTLM authentication class, calls made to SECUR32.DLL (via Interop ) are made to authenticate the base64 encoded data in an HTTP request's Authorization headers. This makes sense, when both AcceptSecurityContext() and QuerySecurityContextToken() return 0 , the client has been authorized. At the end, the security context token has a SecurityIdentifier extracted from it (the _sid variable). (A bit about common Security IDs ) Here is the relevant section of

Windows authentication hybrid

╄→尐↘猪︶ㄣ 提交于 2019-12-10 22:46:37
问题 I am using windows authentication for an intranet MVC application. I want to add additional logic to the authentication process. In other words as well as existing in AD, the user must also exist in a custom database before they are authenticated. They should also be to log out of the MVC app, and login again with the same AD identification, but with a different department selected. I'm not sure of the best way of approaching this, as switching on windows authentication prevents any custom

Kerberos/Spnego authentication issue after password change

喜夏-厌秋 提交于 2019-12-10 20:26:23
问题 I setup Tomcat to use SPNEGO authentication, so the users can Single-Sign-On to our web applications without typing their password and everything worked fine. Yesterday i changed the password of the service account and i recreated the keytab file but after a Tomcat restart the SSO sopped to work. In the logs i found: exception [GSSException: Failure unspecified at GSS-API level (Mechanism level: Checksum failed)] with root cause java.security.GeneralSecurityException: Checksum failed at sun

Access Web Service with Basic authentication through a proxy with Windows (NTLM) authentication

我是研究僧i 提交于 2019-12-10 19:54:50
问题 I have a web service that uses basic authentication. I also have a Windows Forms application that uses the web service. When it starts up, the user is asked for credentials, which are then used when making any requests to the service. Problem is, the app is used by a client from within a corporate network. All their internet traffic is routed through a proxy that uses Windows authentication. I'm trying to configure my application to correctly use that proxy when making requests. So far I have

Missing windows authentication IIS component because of Windows Vista Home Premium edition… any fixes out there?

寵の児 提交于 2019-12-10 18:54:53
问题 Apparently Windows Vista Home Basic and Premium both do not ship with integrated windows authentication for IIS (You need Business edition)... so does anyone know how to get windows authentication installed for IIS? I went into Programs and Features > Turn Windows Features on or off . Then in the Windows Features popup I navigated to... Internet Information Serivces > World Wide Web Services > Security > ??? Under security the only options that were there are: Basic Authentication IP Security

Add custom claims to identity when using Windows authentication

允我心安 提交于 2019-12-10 18:27:45
问题 I am having a difficult time understanding how to add custom claims when using Windows authentication in a .Net MVC app. The challenge here is to populate the users's identity with custom claims from the database on login, so as to avoid making a db call every time I want to check a custom authorization attribute. But the use of Windows auth complicates things for me, as there's no login method in which to put the code that populates the roles. Is there a method to override, or some other way

JetBrain Rider , Access denied when using IIS Express with Windows Authentication

余生长醉 提交于 2019-12-10 18:23:00
问题 I have an enabled Windows Authentication on my projects, when I run it from Rider, it always prompts me access denied. It's working fine when I run it via Visual Studio. Anyone has any idea how to solve this? 回答1: Navigate to: <project>.idea/config/applicationhost.config Find the tag <authentication> and enable the <windowsAuthentication> tag like so: <windowsAuthentication enabled="true"> Mine looks like this: <windowsAuthentication enabled="true"> <providers> <add value="Negotiate" /> <add