Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Login for LCCS not working on server machine

Avatar

Level 2

Hi,

I have developed an application on my local host .

its working fine on localhost. for login and other stuff.

but the same  code base is not working on a remote server.

Kindly provide a solution....

I implemented this login feature in php .. as given below...........

public function getUser(LoginVO $loginVO)

    {

        $adminVO = new LoginVO();

        $adminVO->username = $loginVO->username;

        $adminVO->password = $loginVO->password;

        $adminVO->roomName = $loginVO->roomName;

        if($loginVO->password != "" ){

            $role=50;

            $id=1001;

        }else{

            $role=10;

            $id=1001;  

        }

    $username = $loginVO->username;

    $room = $loginVO->roomName;

    $adminVO->role = $role;

    $devUsername = "uname";

    $devPassword = "password";

    $token  = "4d8d3e8b5bc449f1bbbb4a2be791b867";

    $accountURL = "https://collaboration.adobelivecycle.com/roomname";

    $roomURL = "{$accountURL}/{$room}";

    $lccs = new RTCAccount($accountURL);

    $lccs->login($devUsername, $devPassword);

    $session =$lccs->getSession($room);

    $keytoken=$session->getAuthenticationToken($token,$username ,$id ,$role);

    $adminVO->keytoken =$keytoken;

    return $adminVO;

      }

8 Replies

Avatar

Employee

Since your code works on your local machine I would suspect that the server configuration is wrong or somewhat different than your local machine.

Are you running the same version of PHP ? Do you have the same PHP modules installed (you need the SSL module) ?

Did you check your PHP/Apache error logs to see if there was any indication of what could be wrong ?

You can try to enable the debug messages ( add "RTC::$Debug = true;"  to your code ) and send us the log messages if you still can't figure what is different between your two instances of your application.

Avatar

Level 2

I don't have SSL module on server. Is it necessary?  Any solution without SSL. Please help...

Avatar

Employee

No, for security reason our REST API are only available via HTTPS.

Avatar

Employee

No, you cannot. Sorry.

Sent from my iPhone

Avatar

Level 2

Hi ,

Please let me know how can i get to know about a user related to a event........

  1) how much time he spent with given event?

  2) status of user like (logging,buffering, playing, etc..)?

With warm regards

RajSun2

Avatar

Employee

Sorry, but I don't understand your question. What exactly do you want to know ? What events are you referring to ?

The "status" of user (logging,buffering, playing) seems to me that is something only your client application would know. You may want to think about instrumenting your application and if needed sending that type of information to your server.