[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-1629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15972258#comment-15972258
 ] 

Maxim Solodovnik commented on OPENMEETINGS-1629:
------------------------------------------------

It's not clear from bug description what is the issue ...

and it's better to use user@ mailing list 
http://openmeetings.apache.org/mail-lists.html for questions (please subscribe 
first)

What I can see: this URL
http://localhost:5080/openmeetings/swf?secureHash=
should be
http://localhost:5080/openmeetings/hash?secure=

> 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)

Reply via email to