windows-authentication

Thinktecture IdentityServer v3 with WindowsAuth

不问归期 提交于 2019-12-09 04:57:11
问题 I want to use Thinktecture IdentityServer as a token-provider and authenticate users against ActiveDirectory. So that token contain information about the domain user. Both Client and IdentityServer (IIS) reside inside a Windows domain. When Client authenticates with the user account in IIS it uses WindowsAuth. How can this be done? Appreciate for working code sample. 回答1: You would need to create a custom user service , see this example https://gist.github.com/tjrobinson/0ad6c790e90d7a385eb1

Login to Chrome Authentication window using AutoIT

前提是你 提交于 2019-12-09 01:50:31
问题 I tried login to firefox authentication window by following code : WinWaitActive("Authentication Required","","120") If WinExists("Authentication Required") Then Send("username{TAB}") Send("password{Enter}") EndIf But the same dint worked for chrome even though it has the same title as firefox. Any idea? 回答1: @Milos @Samoth thanks for spending to solve my query. Using Autoit windows info tool, i could not identify the windows tile in chrome thats not a case in FF or IE. Instead of that

Why does my MVC3 Intranet site windows authentication not work when published

徘徊边缘 提交于 2019-12-08 20:59:13
问题 We have a simple intranet site in MVC3 and entity framework. Everything works fine for running in debug from visual studio. When I publish the site to either my local boxes IIS7.5 webserver or to a dev box on the same domain, then I get prompted for a username and password and it won't connect to the site. It just returns a 401.1 error and curiously shows Logon Method Not yet determined Logon User Not yet determined I have verified that the windows authentication is enabled and anonymous

ASP.NET Core - Authorization Using Windows Authentication

梦想的初衷 提交于 2019-12-08 13:39:34
问题 I have configured my web api to work with windows authentication. My goal is essentially to restrict certain actions in my controllers based on a users windows account. Some will be able to preform read actions while others will be able to preform actions that will write to the underlying database. I have found plenty of documentation on how to set up claims based authorization which is the route I think I need to go. What I have not found is how to set this up with windows auth. I think I am

How to use both windows and forms auth with a single custom role provider

☆樱花仙子☆ 提交于 2019-12-08 12:18:21
问题 I have a custom role provider, built on a Role entity, and a many to many relationship called RoleUser, between my forms auth User entities and the Roles. I would like to switch this roles provider into using Windows auth as well now. It seems convenient for me piggy back of the forms Users, and create 'shadows' of AD users in my Users entities. Is this feasible or frowned upon, and are there any good papers etc. on this kind of setup? I'm using EF Code First against SQL 2005, and am not

Change username programmatically when connecting to a Sql Server using Windows authentication from a Delphi application

坚强是说给别人听的谎言 提交于 2019-12-08 09:45:19
问题 I have a Sql Server that uses Windows Authentication. I want to connect to the server from a Delphi application. By default, SQL Server will assume the credentials of the user that launches the connecting process. This means that to change the login, I currently have two options: Log off and Log in as the desired user, then run my application Launch the program from the command line using the RUNAS command. I'd like to let the user provide credentials from within the application, and log in

3 requests for every resource (2 x 401.2 and 1 x 200) in a windows authenticated asp.net mvc app

末鹿安然 提交于 2019-12-08 07:34:34
问题 I was trying to track down why my site was so painfully slow in IE9 when I pulled out Fiddler and realised that every request is being sent 3 times (twice I get 401.2 and then a success). I verified this happens on all browsers, its just that Chrome's speed was masking this (or it could be that this has nothing to do with my sites performance issues in IE). I've set up break points in my begin/end request handlers and the request comes in for say a css file. It is not authenticated and the

Domain Authentication from .NET Client over VPN

我是研究僧i 提交于 2019-12-08 07:02:48
问题 I am writing a ClickOnce WPF app that will sometimes be used over VPN. The app uses resources available only to domain authenticated users. Some of the things include accessing SSRS Reports, accessing LDAP to lookup user information, hitting web services, etc. When a user logs in from a machine that is not authenticated on the domain, I need to somehow get his credentials, authenticate him on the domain, and store his credentials. What is the recommended approach for authenticating domain

NancyFx on IIS and Windows Authentication

烈酒焚心 提交于 2019-12-08 02:04:08
问题 I have converted a MVC + AngularJS application to use NancyFx + AngularJS (as I wasn't really using any MVC stuff). I am using VS2013 and it runs under IIS (and IIS Express in my dev environment). I can obtain the current logged in user by examining the server.User component of the OwinEnvironment. I am currently using Microsoft.Owin.Host.SystemWeb as per most of the demos. When I add a RequiresAuthentication to a Get request in my module, I get a pop-up in IE to enter credentials even though

Using windows domain authentication for authentication

半腔热情 提交于 2019-12-08 00:57:34
问题 The title may seem a little weird but what I find around the internet is methods to sign on to stuff automatically with windows domain authentication (Single Sign On), but that is not what I want. In my use case I want to explicitly ask the person to enter their windows domain user/password combination to make sure that the person performing the transaction is the one that is authorized to do so, i.e. not someone who secretly makes use of the authorized person's computer while he/she is away