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