Uploaded image for project: 'Openmeetings'
  1. Openmeetings
  2. OPENMEETINGS-1629

How to connect my application OpenMeetings: SSO login from another application

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Information Provided
    • 3.2.1
    • None
    • SOAP/REST API
    • None
    • Windows 8
    • Hide
      I am writing code to login in to openmeetings from another application SSO login from another application and want to enter in to room directly by using API.

      I tried the following steps:
      1. Get the SID by using code below:

      $.ajax({
                                        method: "GET",
                                        url: "http://localhost:5080/openmeetings/services//user/login",
                                        data: {user: 'amit.k', pass: 'Mind1234'},
                                        dataType: "json",
                                        error : function(jqXHR) {
                                                        console.log(jqXHR.responseText);
                                                      },
                                                      success : function(result) {
                                                                      getHashAndEnterRoom(result.serviceResult.message);
                                                      }
                                      });
      2. Get Hash key by using SID from above function and try to enter in room:


      function getHashAndEnterRoom(sid){
                      $.ajax({
                                        method: "POST",
                                        url: "http://localhost:5080/openmeetings/services/user/hash?sid="+sid,
                                        data: {user: JSON.stringify({
                                            firstname: 'John',
                                            lastname: 'Doe',
                                            externalId: 'uid1',
                                            externalType: 'myCMS',
                                            login: 'superjohn'
                                            }),
                                          options: JSON.stringify({
                                            roomId: 5,
                                            moderator: true,
                                            showAudioVideoTest: true
                                            })
                                          },
                                        dataType: "json",
                                       error : function(jqXHR) {
                                          },
                                       success : function(result) {
                                                       var url ="http://localhost:5080/openmeetings/swf?secureHash= "+result.serviceResult.message+"&;language";

                 window.location=url;
                  }
      })
      Show
      I am writing code to login in to openmeetings from another application SSO login from another application and want to enter in to room directly by using API. I tried the following steps: 1. Get the SID by using code below: $.ajax({                                   method: "GET",                                   url: " http://localhost:5080/openmeetings/services//user/login ",                                   data: {user: 'amit.k', pass: 'Mind1234'},                                   dataType: "json",                                   error : function(jqXHR) {                                                   console.log(jqXHR.responseText);                                                 },                                                 success : function(result) {                                                                 getHashAndEnterRoom(result.serviceResult.message);                                                 }                                 }); 2. Get Hash key by using SID from above function and try to enter in room: function getHashAndEnterRoom(sid){                 $.ajax({                                   method: "POST",                                   url: " http://localhost:5080/openmeetings/services/user/hash?sid= "+sid,                                   data: {user: JSON.stringify({                                       firstname: 'John',                                       lastname: 'Doe',                                       externalId: 'uid1',                                       externalType: 'myCMS',                                       login: 'superjohn'                                       }),                                     options: JSON.stringify({                                       roomId: 5,                                       moderator: true,                                       showAudioVideoTest: true                                       })                                     },                                   dataType: "json",                                  error : function(jqXHR) {                                     },                                  success : function(result) {                                                  var url =" http://localhost:5080/openmeetings/swf?secureHash= "+result.serviceResult.message+"&;language";            window.location=url;             } })

    Description

      I am writing code to login in to openmeetings from another application SSO login from another application and want to enter in to room directly by using API.

      I tried the following steps:
      1. Get the SID by using code below:

      $.ajax({
      method: "GET",
      url: "http://localhost:5080/openmeetings/services//user/login",
      data:

      {user: 'amit.k', pass: 'Mind1234'}

      ,
      dataType: "json",
      error : function(jqXHR)

      { console.log(jqXHR.responseText); }

      ,
      success : function(result)

      { getHashAndEnterRoom(result.serviceResult.message); }

      });
      2. Get Hash key by using SID from above function and try to enter in room:

      function getHashAndEnterRoom(sid){
      $.ajax({
      method: "POST",
      url: "http://localhost:5080/openmeetings/services/user/hash?sid="+sid,
      data: {user: JSON.stringify(

      { firstname: 'John', lastname: 'Doe', externalId: 'uid1', externalType: 'myCMS', login: 'superjohn' }

      ),
      options: JSON.stringify(

      { roomId: 5, moderator: true, showAudioVideoTest: true }

      )
      },
      dataType: "json",
      error : function(jqXHR) {
      },
      success : function(result)

      { var url ="http://localhost:5080/openmeetings/swf?secureHash= "+result.serviceResult.message+"&;language"; window.location=url; }

      })

      Attachments

        Activity

          People

            solomax Maxim Solodovnik
            amit.rathi1982 amit
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: