Avatar

Employee

This is the definition of getAuthentication token (from lccs.php) :

    /**

     * get an external authentication token

     */

    function getAuthenticationToken($accountSecret, $name, $id, $role)

This is the javadoc (same interface) :

        /**

         * Get an external authentication token for a user

         *

         * @param accountSecret account secret (from DevPortal)

         * @param name user name

         * @param id user ID

         * @param role user role

         * @return external authentication token as HTTP request parameter

         * @throws Exception

         * @see UserRoles

         */

I am not sure of where you got that you need to pass the user password to LCCS. Again, in your logs it shows that both users have a userID (or password in your case) of "TRAINME".

You need to pass your unique ID as the "$id" parameter of getAuthenticationToken.