+ Reply to Thread
Results 1 to 1 of 1
-
06-24-2009 11:37 AM #1
Junior Member
- Join Date
- Jun 2009
- Posts
- 3
Authentication against checkbox failed
I'm working on an application that needs to respond to surveys as of authenticated user on the checkbox.
So I used
IPrincipal principle = Checkbox.Users.UserManager.AuthenticateUser("admin", "admin");
to authenticate. This produces the correct principle. But when I query for current principle with following code segment it always returns null object.
IPrincipal IP1 = UserManager.GetCurrentPrincipal();
Then I tried following code segment to retrieve profileproperty object for the identity.
That returned null as well
object profileProperty = GetProfileProperty(principal.Identity, "Terms of Use Timestamp");
Please let me know how I should use the API to authenticate users against checkbox and if there any configuration that I should look into.
Thanks,
Chaminda


LinkBack URL
About LinkBacks
Reply With Quote

