2

朝、

WCFを構成する方法を知っている人はいますか(任意のバインディングタイプ、現在WSHttpBindingを使用していますが、必要に応じてCustomBindingまたは代替に喜んで移行します)

Web サービス セキュリティ Kerberos トークン プロファイル 1.1

詳細は次の場所にあります。

http://www.oasis-open.org/committees/download.php/16788/wss-v1.1-spec-os-KerberosTokenProfile.pdf

特に、Security BinarySecurityToken セクションと SecurityTokenReference セクションを SOAP ヘッダーに含める方法を知りたいです。以下の例 (上記のドキュメントから抜粋):

<S11:Envelope xmlns:S11="..." xmlns:wsse="..." xmlns:wsu="...">
  <S11:Header>
    <wsse:Security>
      <wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/oasis-wss225 kerberos-token-profile-1.1#Kerberosv5_AP_REQ" wsu:Id="MyToken">
        boIBxDCCAcCgAwIBBaEDAgEOogcD...
      </wsse:BinarySecurityToken>
      ...
      <wsse:SecurityTokenReference>
        <wsse:Reference URI="#MyToken" ValueType="http://docs.oasis-open.org/wss/oasis-wss-kerberos-token232 profile-1.1#Kerberosv5_AP_REQ" >
        </wsse:Reference>
      </wsse:SecurityTokenReference>
      ...
    </wsse:Security>
  </S11:Header>
  <S11:Body>
  ...
  </S11:Body>
</S11:Envelope>

前もってありがとう、ポール。

4

1 に答える 1

1

MSDNのドキュメントから直接:

<wsHttpBinding>
    <binding name="MyBinding">
        <security mode="Message>
            <message   
                clientCredentialType="Windows"
                negotiateServiceCredential="false"
                establishSecurityContext="false"/>
        </security>
    </binding>
</wsHttpBinding>
于 2009-10-27T22:28:16.877 に答える