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

Permission issues (Access Denied) in room access while entering using web service

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Information Provided
    • 3.2.1
    • None
    • SOAP/REST API
    • Windows 8
    • Hide
      Dear Helpdesk,

      I am facing issue while accessing room by calling service.

      I went through the following steps:

      1. I created a user through open meetings portal register option.

      2. Called service and get SID by calling below API:

      $.ajax({
      method : "GET",
      url : "http://locallhost:5080/openmeetings/services/user/login",
      data : {
      user : 'pkumar',
      pass : 'Mind1234'
      },
      dataType : "json",
      error : function(jqXHR) {
      console.log(jqXHR.responseText);
      },
      success : function(result) {
      console.log(result.serviceResult.message);
      getSID(result.serviceResult.message);
      }
      });

      2 Called another service by passing SID and got hash successfully:

      $.ajax({
      method : "POST",
      url : "http://172.29.37.133:5080/openmeetings/services/user/hash?sid="
      + sid,
      data : {
      user : JSON.stringify({
      firstname : 'pkumar',
      lastname : 'pkumar',
      externalId : 'uid',
      externalType : 'myCMS',
      login : 'pkumar'
      }),
      options : JSON.stringify({
      roomId : 1,
      moderator : true,
      showAudioVideoTest : true
      })
      },
      dataType : "json",
      error : function(jqXHR) {
      console.log(jqXHR.responseText);
      },
      success : function(result) {
      window.location = "http://localhost:5080/openmeetings/hash?secure="+ result.serviceResult.message + "&;language=1";
      }
      })

      3. When call service to enter in room it shows "Access Denied. You have no rights to enter this room".

      Although at the time of installing openmeetings we have to create a user and when I try this user to enter in same room, it enters successfully but creates one more entry in user table of database.

      It will be more appreciable if you please share some user manual/document about how to use open meetings when accessing through API.

      Please guide.

      Thanks in advance.
      Show
      Dear Helpdesk, I am facing issue while accessing room by calling service. I went through the following steps: 1. I created a user through open meetings portal register option. 2. Called service and get SID by calling below API: $.ajax({ method : "GET", url : " http://locallhost:5080/openmeetings/services/user/login ", data : { user : 'pkumar', pass : 'Mind1234' }, dataType : "json", error : function(jqXHR) { console.log(jqXHR.responseText); }, success : function(result) { console.log(result.serviceResult.message); getSID(result.serviceResult.message); } }); 2 Called another service by passing SID and got hash successfully: $.ajax({ method : "POST", url : " http://172.29.37.133:5080/openmeetings/services/user/hash?sid= " + sid, data : { user : JSON.stringify({ firstname : 'pkumar', lastname : 'pkumar', externalId : 'uid', externalType : 'myCMS', login : 'pkumar' }), options : JSON.stringify({ roomId : 1, moderator : true, showAudioVideoTest : true }) }, dataType : "json", error : function(jqXHR) { console.log(jqXHR.responseText); }, success : function(result) { window.location = " http://localhost:5080/openmeetings/hash?secure= "+ result.serviceResult.message + "&;language=1"; } }) 3. When call service to enter in room it shows "Access Denied. You have no rights to enter this room". Although at the time of installing openmeetings we have to create a user and when I try this user to enter in same room, it enters successfully but creates one more entry in user table of database. It will be more appreciable if you please share some user manual/document about how to use open meetings when accessing through API. Please guide. Thanks in advance.

    Description

      Dear Helpdesk,

      I am facing issue while accessing room by calling service.

      I went through the following steps:

      1. I created a user through open meetings portal register option.

      2. Called service and get SID by calling below API:

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

      { user : 'pkumar', pass : 'Mind1234' }

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

      { console.log(jqXHR.responseText); }

      ,
      success : function(result)

      { console.log(result.serviceResult.message); getSID(result.serviceResult.message); }

      });

      2 Called another service by passing SID and got hash successfully:

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

      { firstname : 'pkumar', lastname : 'pkumar', externalId : 'uid', externalType : 'myCMS', login : 'pkumar' }

      ),
      options : JSON.stringify(

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

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

      { console.log(jqXHR.responseText); }

      ,
      success : function(result)

      { window.location = "http://localhost:5080/openmeetings/hash?secure="+ result.serviceResult.message + "&;language=1"; }

      })

      3. When call service to enter in room it shows "Access Denied. You have no rights to enter this room".

      Although at the time of installing openmeetings we have to create a user and when I try this user to enter in same room, it enters successfully but creates one more entry in user table of database.

      It will be more appreciable if you please share some user manual/document about how to use open meetings when accessing through API.

      Please guide.

      Thanks in advance.

      Attachments

        1. error.png
          27 kB
          amit

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: