[RESOLVED] Custom WCF Authentication?
Hi, I am trying to implement custom authentication in my WCF service.. Maybe I'm missing something, but I can't seem to figure out how everything goes together.
I am using netTcpBinding, and Callbacks, so AFAIK I only have to login once per reliable session..
For authentication, I am using UserNamePasswordValidator, to validate the username and password, which works fine, BUT, how can I find out which user logged in from my Service class (the one that implements the interface with the ServiceContract Attribute), when I call methods in that class ??? :confused:
Re: Custom WCF Authentication?
Re: Custom WCF Authentication?
Thanks! That article was quite complicated, but
Code:
ServiceSecurityContext.Current.PrimaryIdentity.Name
helped to get the username. :)
Re: Custom WCF Authentication?
If my post was useful please rate it. If the problem is solved, mark this tread as resolved.