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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Information Provided
    • Affects Version/s: 3.2.1
    • Fix Version/s: None
    • Component/s: SOAP/REST API
    • Labels:
      None
    • Environment:
      Windows 8
    • Docs Text:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: