Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadYounes committed Nov 19, 2015
1 parent ebb83b6 commit b520019
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -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
Expand Down Expand Up @@ -91,7 +91,7 @@ The following example shows how to import user Email, Surname and GiveName from
OnImportClaims = identity =>
{
List<Claim> claims = new List<Claim>();
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))
{
Expand Down

0 comments on commit b520019

Please sign in to comment.