Skip to main content
Participant
June 11, 2014
Question

Integrating Adobe Connect with PHP for SSO

  • June 11, 2014
  • 1 reply
  • 2271 views

Hi,

I am new to adobe connect. Can you please provide sample code or procedure to do so?

How can I integrate adobe connect to create rooms with php site ?

Please help me on this.

    This topic has been closed for replies.

    1 reply

    Jorma_at_Knox
    Legend
    June 11, 2014

    All API documentation is available here: Adobe Connect | Adobe Developer Connection

    You will want the Connect 9 Web Services guide.

    Participant
    June 30, 2014

    Hi Jorma,

    Thanks for your reply. I have read this and using this and curl with php to integrate single sign on. I am using this code:

    <?php

    session_start();

    header('content-type:text/html; charset=utf-8');

    $email=$_POST['email'];

    $password=$_POST['password'];

    $ch = curl_init('https://groupmeditate.adobeconnect.com/api/xml?action=common-info');

    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

    $data = curl_exec($ch);

    if ($data === false) {

          exit('Error1, ' . curl_error($ch) . "\n");

    }

    curl_close($ch);

    $user = simplexml_load_string($data);

    function object2array($object)

    {

    return @json_decode(@json_encode($object),1);

    }

    $datas = object2array($user);

    //print_r($datas);

    $status_code=$datas['status']['@attributes']['code'];

    $accountid=$datas['common']['account']['@attributes']['account-id'];

    if($status_code=="ok"){

          $confses = $user->common->cookie;

    }else {

          exit("error1");

    }

    //echo "https://groupmeditate.adobeconnect.com/api/xml?action=login&login=$email&password=$password&account-id=$accountid&session=$confses";

    $ch = curl_init("https://groupmeditate.adobeconnect.com/api/xml?action=login&login=$email&password=$password&account-id=$accountid&session=$confses");

    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

    $s = curl_exec($ch);

    if ($s === false) {

          exit('Error2, ' . curl_error($ch) . "\n");

    }

    curl_close($ch);

    echo $login->status[code];

    $login = simplexml_load_string($s);

    if($login->status

    =="ok"){

    ?>

    <a href="https://groupmeditate.adobeconnect.com/testing/">Enter Chat</a>

    <?php

    }

    ?>

    But when clicking on "Enter Chat" link, its goes to adobe connect login page. Please help me with this.

    Jorma_at_Knox
    Legend
    June 30, 2014

    You should call the session ID in the link to the meeting room (Enter Chat link). I believe that will pass the user credentials.

    http://groupmediate.adobeconnect.com/testing/?session=$confses

    Step 4 in this process: Adobe Connect 9 * Launch meetings with external authentication