From b52001922876d462e259418c403029e7b7791828 Mon Sep 17 00:00:00 2001 From: Mohammad Younes Date: Thu, 19 Nov 2015 21:56:39 +0200 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 35727dd..c82d9ec 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Before running the samples, make sure to unlock `windowsAuthentication` section: ![unlock-section](https://cloud.githubusercontent.com/assets/4712046/4689687/d28f8df8-56c6-11e4-9b88-8f5cb769ae93.png) ### IIS Express -1. Open **applicationhost.config** located at *$:\Users\\{username}\Documents\IISExpress\config* +1. Open **applicationhost.config** located at *$:\Users\\{username}\Documents\IISExpress\config* or at *$(SolutionDir)\\.vs\config* 2. Search for `windowsAuthentication` section and update `overrideModeDefault` value to `Allow`. ```XML @@ -91,7 +91,7 @@ The following example shows how to import user Email, Surname and GiveName from OnImportClaims = identity => { List claims = new List(); - using (var principalContext = new PrincipalContext(ContextType.Domain | ContextType.Machine)) + using (var principalContext = new PrincipalContext(ContextType.Domain)) //or ContextType.Machine { using (UserPrincipal userPrincipal = UserPrincipal.FindByIdentity(principalContext, identity.Name)) {