tags:

views:

274

answers:

3

Hi, how i can get the logged in user name when the result of AuthenticationService.isLoggedIn() is true?

thank

A: 

Have you tried looking at the Thead.CurrentPrincipal?

Kieron
+1  A: 

Normally i would find WCF security information from ServiceSecurityContext.Current. Try ServiceSecurityContext.Current.PrimaryIdentity

jake.stateresa
A: 

ServiceSecurityContext.Current.WindowsIdentity.Name

Adam Fyles