2

現在、カスタムUserNamePasswordValidatorを使用しています。これにより、コンシューマーは次のように SOAP ヘッダーで資格情報を指定できます。

<o:Security xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" mustUnderstand="1">
<Timestamp Id="_0">
    <Created>
        2013-04-05T16:35:07.341Z</Created>
        <Expires>2013-04-05T16:40:07.341Z</Expires>
    </Timestamp>
    <o:UsernameToken Id="uuid-ac5ffd20-8137-4524-8ea9-3f4f55c0274c-12">
        <o:Username>someusername</o:Username>
        <o:Password o:Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">somepassword
    </o:Password>
</o:UsernameToken>
</o:Security>

クライアントの IP アドレスのログ記録を開始し、IP ホワイトリスト/ブラックリストを作成する必要があります。残念ながら、このクラスで IP を取得する方法がわかりません。実行時には、OperationContext.CurrentHttpContext.Currentの両方のプロパティが null です。

4

2 に答える 2