1

I want to create a new WCF service and client. The 2 parties will communicate using 2 way SSL, in order to trust each other.

My question is how, at the server's side, can I identify who is the client that works against it. The best thing will be to achieve the client's certificate (which was sent during the authentication phase of SSL).

I need this certificate in order to give this client permissions depending of who is it.

Thanks.

4

1 に答える 1

2

使用する

System.ServiceModel.ServiceSecurityContext.Current

プロパティを確認するには:

  • 認可ポリシー
  • 匿名です
  • PrimaryIdentity
  • WindowsID
于 2012-06-18T08:51:48.723 に答える