Azure active directory 从IIS中托管的Asp.net MVC网站的Windows身份验证迁移到Azure AD身份验证

Azure active directory 从IIS中托管的Asp.net MVC网站的Windows身份验证迁移到Azure AD身份验证,azure-active-directory,iis-7,azure-authentication,Azure Active Directory,Iis 7,Azure Authentication,我正在迁移基于ASP.NETMVC的网站以使用Azure广告验证。我的网站已成功迁移到used AAD 我的网站打电话给WCF服务。如何将登录信息传递到此WCF服务 这是我在web.config中的ServiceModel配置。谢谢你的帮助 > > 看一看。将AAL代码替换为 <behaviors> <endpointBehaviors> <behavior name="AdsPlusValidatorServ

我正在迁移基于ASP.NETMVC的网站以使用Azure广告验证。我的网站已成功迁移到used AAD

我的网站打电话给WCF服务。如何将登录信息传递到此WCF服务

这是我在web.config中的ServiceModel配置。谢谢你的帮助


>
>       



看一看。将AAL代码替换为

<behaviors>
  <endpointBehaviors>
    <behavior name="AdsPlusValidatorServiceBehavior">
      <dataContractSerializer maxItemsInObjectGraph="2147483647" />
    </behavior>
  </endpointBehaviors>
</behaviors>
<bindings>
  <basicHttpBinding>
    <binding name="BasicHttpBinding_IJobManagerService" closeTimeout="00:01:00" OpenTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" ostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"  essageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"  allowCookies="false">
      <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="16384" />
      <security mode="TransportCredentialOnly">
 >        <transport clientCredentialType="Windows" />
>       </security>
 </binding>
 </basicHttpBinding>
 </bindings>
<client>
 <endpoint address="http://localhost:8000/Validator/Service" behaviorConfiguration="AdsPlusValidatorServiceBehavior" binding="basicHttpBinding"  bindingConfiguration="BasicHttpBinding_IJobManagerService"contract="IJobManagerService"  name="BasicHttpBinding_IJobManagerService">
    <identity>
      <servicePrincipalName value="" />
    </identity>
  </endpoint>
</client>   </system.serviceModel>