开发者

How do I get the Current ServiceSecurityContext on the server side when using WCF?

开发者 https://www.devze.com 2023-01-12 20:03 出处:网络
I have a client app that can upload some data via a WCF service. I have the client app setup some credentials so the service can authenticate the user using some membership provider.

I have a client app that can upload some data via a WCF service.

I have the client app setup some credentials so the service can authenticate the user using some membership provider.

I'm having some issues gettin开发者_开发问答g SSL (https) working at the moment so I tried just simplifying the config by setting security modes to none. When doing so the context is always null on the server.

Does that mean I need to setup SSL in order to access ServiceSecurityContext.Current on the server side?


ServiceSecurityContext.Current.PrimaryIdentity.Name;
0

精彩评论

暂无评论...
验证码 换一张
取 消