|
-
Sep 15th, 2009, 02:59 AM
#1
Thread Starter
Lively Member
[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 ???
Did you know...  ..that you live in a Universe?!
Code:
var Answer = Uni + Verse = single + spoken + sentence;
Life is amusing...
-
Sep 15th, 2009, 08:58 AM
#2
Re: Custom WCF Authentication?
-
Sep 25th, 2009, 08:12 AM
#3
Thread Starter
Lively Member
Re: Custom WCF Authentication?
Thanks! That article was quite complicated, but
Code:
ServiceSecurityContext.Current.PrimaryIdentity.Name
helped to get the username.
Did you know...  ..that you live in a Universe?!
Code:
var Answer = Uni + Verse = single + spoken + sentence;
Life is amusing...
-
Sep 28th, 2009, 02:26 AM
#4
Re: Custom WCF Authentication?
If my post was useful please rate it. If the problem is solved, mark this tread as resolved.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|