共用方式為


<localIssuer>

指定要用來取得安全性權杖的本機發行者位址和繫結。

<<system.serviceModel>>
  <behaviors>
    <endpointBehaviors>
      <endpointBehaviors> 的 <behavior>
        <clientCredentials>
          <issuedToken>
            <localIssuer>

<localIssuer address="string"
      binding="string"
      bindingConfiguration="string" />

屬性和項目

屬性

屬性 描述

address

必要的字串。指定本機發行者的 URI。

binding

選擇性字串。系統提供的繫結之一。如需清單,請參閱 System-Provided Bindings

bindingConfiguration

選擇性字串。指定組態檔中的繫結組態。

子項目

項目 描述

<identity>

指定本機發行者的身分識別資訊。

<headers> 項目

位址標頭集合,這些位址標頭是正確定址本機發行者時的必要項目。您可以使用 add 關鍵字將標頭加入這個集合。

父項目

項目 描述

<issuedToken>

指定用來向服務驗證用戶端的自訂語彙基元。

備註

當取得某個安全性權杖服務 (STS) 所核發的權杖時,用戶端應用程式必須以特定位址和繫結完成設定,才能與該 STS 進行通訊。當 WSFederationHttpBinding 未提供該安全性權杖服務的 URL,或是聯合繫結的發行者位址為 https://schemas.microsoft.com/2005/12/ServiceModel/Addressing/Anonymousnull 時,用戶端的 Windows Communication Foundation (WCF) 通道會使用 addressbinding 指定的值與 STS 通訊,以取得已核發的權仗。如需設定本機發行者的詳細資訊,請參閱 How To: Configure a Local Issuer

範例

下列範例會設定 localIssuer 項目的 addressbindingbindingConfiguration 屬性。

<system.serviceModel>
 <behaviors>
 <endpointBehaviors>
  <behavior name="MyEndpointBehavior">
   <clientCredentials>
    <issuedToken cacheIssuedTokens="false" 
                 defaultKeyEntropyMode="ClientEntropy">
     <localIssuer address="net.tcp://cohowinery/tokens" 
                  binding="netTcpBinding"
                  bindingConfiguration="myTcpBindingConfig" />
    </issuedToken>
   </clientCredentials>
  </behavior>
  </endpointBehaviors>
  </behaviors>
</system.serviceModel>

請參閱

參考

LocalIssuer
IssuedTokenParametersEndpointAddressElement
IssuedTokenClientCredential

其他資源

Security Behaviors in WCF
How To: Configure a Local Issuer
Specifying Service Identity
Security Behaviors in Windows Communication Foundation
Federation and SAML
Securing Services and Clients
Securing Clients
How To: Create a Federated Client
Federation and Issued Tokens