Pinned topicIssue with Push UserId and Custom Login Module

‏2013-01-22T17:00:29Z
|Tags:

Answered question
This question has been answered.

Unanswered question
This question has not been answered yet.

I am currently having an issue where if I am using custom authentication, such as that in Module 22 – Custom Login Module, the user id sent when registering for push notifications is not that of the username I logged in with.
I am able to see the user id that is registered through logging, which seems to be a randomly generated sequence of letters and numbers.

The Push Notification module uses simple form based authentication, and does work for sending the user id properly, but the code copied directly from the Custom Login module does not. So I am thinking there is something missing in that code to set the current user, even though it does verify that I am authenticated.

Also when I try to run WL.Client.getLoginName or getUserName it always returns “undefined”, in both the Push and Custom Login modules, so I am not able to check what it thinks my user name is.

I have put the push module code into the customer authentication module and get the same results, randomly generated userId instead of the one I logged in with.

Re: Issue with Push UserId and Custom Login Module

After adding a "mobileSecurityTest" and the "securityTest" parameter it gets the correct user id. My guess would be that without the securityTest it is able to register itself when doing createEventSource and that doesn't change after authenticating.