You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by "Maxim Solodovnik (JIRA)" <ji...@apache.org> on 2017/04/19 02:22:42 UTC

[jira] [Closed] (OPENMEETINGS-1629) How to connect my application OpenMeetings: SSO login from another application

     [ https://issues.apache.org/jira/browse/OPENMEETINGS-1629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maxim Solodovnik closed OPENMEETINGS-1629.
------------------------------------------

> How to connect my application OpenMeetings:  SSO login from another application 
> --------------------------------------------------------------------------------
>
>                 Key: OPENMEETINGS-1629
>                 URL: https://issues.apache.org/jira/browse/OPENMEETINGS-1629
>             Project: Openmeetings
>          Issue Type: Bug
>          Components: SOAP/REST API
>    Affects Versions: 3.2.1
>         Environment: Windows 8
>            Reporter: amit
>            Assignee: Maxim Solodovnik
>
> 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;
>             }
> })



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)