<?xml version="1.0"?>
<configuration>
 <appSettings>
    <add key="LiveIdBasicAuthModule.ApplicationName" value="Microsoft.Exchange.OfflineAddressBook"/>
    <add key="LiveIdBasicAuthModule.IdpFailureStatus" value="503"/>
    <add key="LiveIdBasicAuthModule.AllowCookieAuth" value="false" />
    <add key="LiveIdBasicAuthModule.MailboxProxy" value="true"/>

    <add key="OAuthHttpModule.Profiles" value="V1AppActAs"/>
    <add key="OAuthHttpModule.V1AppScopes" value="user_impersonation"/>
    <add key="OAuthHttpModule.RunningAtBackend" value="true" />
 </appSettings>
  <system.webServer>
    <modules>
      <remove name="ServiceModel" />
      <remove name="ServiceModel-4.0" />
      <add name="LiveIdBasicAuthModule" type="Microsoft.Exchange.Security.Authentication.LiveIdBasicAuthModule" />
      <add name="OAuthAuthModule" type="Microsoft.Exchange.Security.OAuth.OAuthHttpModule" />
      <add name="OABRequestHandler" type="Microsoft.Exchange.OABRequestHandler.HttpModule,Microsoft.Exchange.OABRequestHandler" preCondition="" />
    </modules>
    <httpErrors existingResponse="PassThrough" />
    <httpRedirect enabled="false" />
  </system.webServer>
  <system.web>
    <compilation>
      <assemblies>
        <add assembly="Microsoft.Exchange.Security, Version=15.0.0.0, Culture=neutral, publicKeyToken=31bf3856ad364e35" />
      </assemblies>
    </compilation>
  </system.web>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <linkedConfiguration href="file://%ExchangeInstallDir%ClientAccess\SharedWebConfig.config"/>
  </assemblyBinding>
</configuration>
