I have a WCF service, which works if I use one login, but throws the following error if I try logging in with any other login. Strangely enough, if I change the password to the working login, the new
My current application uses the PrincipalContext c开发者_运维技巧lass to authenticate a default user (filled in in the Web.config dedicated section) against a LDAP (and more precisely an Active Direct
The case is easy: user clicks logout, goes to LogoutFilter and: HttpServletRequest hreq = (HttpServletReques开发者_如何学Ct) request;
We are using a custom principal and identity type (ProdigyPrincipal/ProdigyIdentity) because we need extra information within our programs and services. In the program we set the principal and identit
I have a custom user details object with first name part of it.Below username works, but I want something like 开发者_如何学编程the second to work.How can I access this custom property?
Here is a trivial console application that i run in command prompt: using System; using System.Threading;
I want to be able to access custom properties for an authenticated user like UserId and FirstName without querying the database each time.I found this site through a post on Stack Overflow and I like
In the constructor of my WCF service class I am setting the current principal to be that of the principal passed in the header of the message:
I want to create a WindowsIdentity for a given user. I don\'t need it for impersonation, just for group membership checks. I need it to work with and without a domain开发者_StackOverflow社区 (none of
I have a situation where I need to store a globally unique identifier that points to an Active Directory user account.I\'m leaning towards th开发者_C百科e Guid because it is easier to store than the S