windows-authentication

NancyFx and Windows Authentication

让人想犯罪 __ 提交于 2019-11-28 16:03:25
问题 I want to use NancyFx for an intranet web app. All the documentation and forums only mention Forms and Basic authentication. Anyone successfully use Nancy with Windows Authentication? There's also something called Nancy.Authentication.Stateless but I can't see what that does (looks like it's for use in Apis). 回答1: I used this in an internal project recently - I don't really like it, and it ties you to asp.net hosting, but it did the job: namespace Blah.App.Security { using System; using

Unable to get windows authentication to work through local IIS

自作多情 提交于 2019-11-28 15:20:49
So I've created a new ASP.NET MVC project using the intranet template. web.config contains the appropriate values (e.g. <authentication mode="windows"/> ). If I fire up the web app using the VS webserver, it all looks fine - the page shows my Windows domain and username and all. However, this works in Opera and Safari as well as IE and FF, which says to me it's not using Windows auth at all (since to the best of my knowledge this doesn't work in any browser except IE/FF). Next step is to get it working through local IIS. I create a hosts file entry pointing www.mysite.mydomain to 127.0.0.1. So

WCF Service, Windows Authentication

北城余情 提交于 2019-11-28 14:16:02
we wrote a WCF service, deployed on IIS. we chose Integrated Windows Authentication. service can not be used in this case but if we can set the authentication method of the IIS virtual directory to "Anonymous" for WCF services, then the error will go away. But "Anonymous" is not acceptable for our WCF service. We have to use Integrated Windows Authentication to authenticate the client. Any one knows how to fix this problem? Thanks in advance, Ashish You have to do a few things: Uncheck the anonymous access from your Virtual forlder and check Integrated windows security. Create the following

Enabling PUT on IIS 7.5 for an ASHX handler using Windows Authentication

◇◆丶佛笑我妖孽 提交于 2019-11-28 13:34:05
I have an ASP.NET (.NET 4) website that uses http PUT for an .ashx generic handler. The PUT call originates from a Silverlight front end. All works in VS 2010 on my local machine (Cassini web server). Then I deployed to an IIS7.5 Win Server 2008 R2 box. The silverlight/website is fine, but PUT calls to the .ashx handler are met with a Windows Login Prompt. This is a local intranet so Windows Authentication (with NTLM & Negotiate providers) is the only enabled authentication. Then I read this: http://blogs.msdn.com/b/joseph_fultz/archive/2009/07/23/enabling-the-put-verb-with-handlers-and-iis-7

Integrated Windows Authentication in ABP framework

左心房为你撑大大i 提交于 2019-11-28 11:39:56
问题 I'm attempting to use ABP with Windows Authentication rather than Table-based authentication. The plan is to have the framework: Detect that the website is in a Windows security context and bypass the login page. Then associate Windows Identity/Roles and use those to map the Roles/Permissions defined in the database. I did not see anything in the documentation regarding this Windows-integrated approach. If anyone has done this previously, I appreciate any tips. I think my best bet would be to

WebApi with OWIN SelfHost and Windows Authentication

谁都会走 提交于 2019-11-28 10:26:30
I have a console application SERVER that hosts WebApi controllers using OWIN self-hosting, and runs under a custom account named "ServiceTest1". In the same machine I have another console application CLIENT that runs under the account "ServiceTest2", and I want to capture in SERVER that "ServiceTest2" invoked a controller action. However: WindowsIdentity.GetCurrent() is always "ServiceTest1". Thread.CurrentPrincipal is an unauthenticated GenericIdentity . RequestContext.Principal is null. User is null. What do I need to make this WebApi OWIN self-hosted to grab the Windows identity of the

Asp.Net core MVC application Windows Authentication in IIS

陌路散爱 提交于 2019-11-28 10:03:17
My Asp.Net Core mvc web application requires Windows Authentication. In developpement, on IIS Express, everything works fine thanks to this setting launchSettings.json "iisSettings": { "windowsAuthentication": true, "anonymousAuthentication": false, "iisExpress": { "applicationUrl": "http://localhost:61545/", "sslPort": 0 } } When deploying to IIS, I get a blank page. The Request to my site get a 500 error code. I tried to add this configuration to Startup.cs, as explained here , without success. services.Configure<IISOptions>(options => { options.ForwardWindowsAuthentication = true; }); When

Windows authentication trusted connection not working

邮差的信 提交于 2019-11-28 09:54:45
问题 MSSQL Server is in the "abc" domain and have mixed mode authentication. I am connecting from the machine which is not in domain or in a domain "xyz" but with in the same network using MSSQL Jdbc driver 2.0. I have logged in as admin or account in xyz domain. It works fine using following url for connection for "sa" or SQL Mode Authentication. jdbc:sqlserver://%DB_IP%:%DB_PORT%;SelectMethod=cursor;DatabaseName=dbname It doesn't work For window authentication using credential "MSSQLDomain

Integrated Windows Authentication (NTLM) in a Java/WebLogic app?

别等时光非礼了梦想. 提交于 2019-11-28 09:33:39
Our team built a WebLogic intranet site. Users currently must type in their Active Directory login/password to access the site. Since most of our users are already logged in to the domain, we would like to use Integrated Windows Authentication so users do not have to re-type their login password. I have done this with .NET applications hosted on Windows/IIS. However, this app is built in WebLogic/Java and is hosted on RedHat Linux. Is there a step-by-step guide or prototype application available? (Please assume for this question that we are standardized on Internet Explorer browser.) morja

Connect to MySQL database w/ C# as non-root user?

我只是一个虾纸丫 提交于 2019-11-28 09:30:08
问题 Let me start by saying I'm completely new to databases, but have been reading through the MySQL tutorial they have. Right now, I'm trying to make an app that allows unprivileged users (non-root) to connect and do some commands on a database through a C# GUI app. The users will login to the database using windows authentication. Now, I was able to to make a quick GUI where the person running the program can connect to the database on a local host using "root" and get whatever content is in it.