I have made a external user by using addNewUserWithExternalType(). It was fine. Then auto login, fuum not work on me. I checked it and got the return as following.
<ns:setUserObjectAndGenerateRoomHashResponse xmlns:ns=" http://services.axis.openmeetings.apache.org "><ns:return>a8e844da497727d8a0ec1db4447d9d60</ns:return></ns:setUserObjectAndGenerateRoomHashResponse> It seems like containing a hash code. Should i use it to redirect process? Now i redirect to OM top simply without any query. Thx a lot Maxim, very often. -Ono 2013/10/25 Maxim Solodovnik <solomax...@gmail.com> > The order should be: > > 1) getSession > 2) loginUser > 3) setUserObject..... NOTE externalUserId and externalUserType are > mandatory parameters > > by loginUser you authorizing your script > by setUserObject... you are creating/editing "externaal" user and creating > hash for entering the room as this user > > > On Fri, Oct 25, 2013 at 2:41 PM, 小野圭二 <onoke...@gmail.com> wrote: > >> Thx Maxim, >> >> I tried setUserObj...() , but the return was error code that mean "Admin >> authorization required". >> >> <ns:setUserObjectAndGenerateRoomHashResponse xmlns:ns=" >> http://services.axis.openmeetings.apache.org >> "><ns:return>-26</ns:return></ns:setUserObjectAndGenerateRoomHashResponse> >> >> This is the REST url that i called. >> >> http://localhost:5080/openmeetings/services/UserService/setUserObjectAndGenerateRoomHash?SID= >> ".$sessionID."&username=onoke&firstname=ono&lastname=keiji&profilePictureUrl=&email= >> o...@net8.co.jp >> &externalUserId=&externalUserType=&room_id=3&becomeModeratorAsInt=0&showAudioVideoTestAsInt=0 >> >> *$sessionID was gotten by getSession() >> >> >> Something lack? :-< >> >> >> -Ono >> >> >> 2013/10/25 Maxim Solodovnik <solomax...@gmail.com> >> >>> you need to call >>> >>> http://openmeetings.apache.org/UserService.html#setUserObjectAndGenerateRoomHash >>> >>> then redirect to >>> http://localhos:5080/openmeetings/?secureHash=<hash_created>&language=1 >>> >>> >>> On Fri, Oct 25, 2013 at 1:23 PM, 小野圭二 <onoke...@gmail.com> wrote: >>> >>>> Hi, >>>> >>>> Let me know what should i do after loginUser() was success. >>>> >>>> I am testing loginUser() for auto login from external site. >>>> At first, i got a session id by using getSession(), then called >>>> loginUser() with setting the session id. >>>> So the return was as following. >>>> <ns:loginUserResponse xmlns:ns=" >>>> http://services.axis.openmeetings.apache.org >>>> "><ns:return>1</ns:return></ns:loginUserResponse> >>>> >>>> In the element value was 1. I thought i got a success to auto login as >>>> it was positive. >>>> Then i redirected to OpenMeetings, but the login combo appeared on it. >>>> Are there any wrong procedure on me? >>>> >>>> Thanks in advance. >>>> >>>> Ono >>>> >>> >>> >>> >>> -- >>> WBR >>> Maxim aka solomax >>> >> >> > > > -- > WBR > Maxim aka solomax >