Re: Auto login: test loginUser()

2013-10-28 Thread Maxim Solodovnik
One of :) On Tue, Oct 29, 2013 at 10:58 AM, 小野圭二 wrote: > Hey Maxim, are you maintainer of this API ? > > > 2013/10/29 Maxim Solodovnik > >> using non unique logins can lead to weird results >> I would try to avoid this >> >> >> On Tue, Oct 29, 2013 at 10:17 AM, 小野圭二 wrote: >> >>> You mean "o

Re: Auto login: test loginUser()

2013-10-28 Thread Maxim Solodovnik
using non unique logins can lead to weird results I would try to avoid this On Tue, Oct 29, 2013 at 10:17 AM, 小野圭二 wrote: > You mean "ono3"'s login field is wrong? > > > 2013/10/29 Maxim Solodovnik > >> no users can be registered using loginUser >> I would try to use unique login names >> >> >

Re: Auto login: test loginUser()

2013-10-28 Thread 小野圭二
You mean "ono3"'s login field is wrong? 2013/10/29 Maxim Solodovnik > no users can be registered using loginUser > I would try to use unique login names > > > On Tue, Oct 29, 2013 at 8:14 AM, 小野圭二 wrote: > >> Ok Maxim. >> I checked the tables and confirmed as you said. The "external" user is i

Re: Auto login: test loginUser()

2013-10-28 Thread Maxim Solodovnik
no users can be registered using loginUser I would try to use unique login names On Tue, Oct 29, 2013 at 8:14 AM, 小野圭二 wrote: > Ok Maxim. > I checked the tables and confirmed as you said. The "external" user is in > it certainly. > The following is my om_user tables data. > > mysql> select firs

Re: Auto login: test loginUser()

2013-10-28 Thread 小野圭二
Ok Maxim. I checked the tables and confirmed as you said. The "external" user is in it certainly. The following is my om_user tables data. mysql> select firstname,login,password,status,externalUserId from om_user; +---+---+--++---

Re: Auto login: test loginUser()

2013-10-28 Thread Maxim Solodovnik
"external" users are added to the "om_user" database (on the first secureHash link use, mean no user is created UNLESS hash is used) All users has their private file inaccessible to others As soon as files are shared to the room they are accessible by others Your assumption regarding files seems t

Re: Auto login: test loginUser()

2013-10-28 Thread 小野圭二
To confirm, the important thing the "external" user difference with "real" one is that need to register into om_user table or not, i guess. In my test, a "external" user dose not need to register in the table. And he has a private file repository in a room. I would like to know what the relation be

Re: Auto login: test loginUser()

2013-10-28 Thread Maxim Solodovnik
As I understand the current process "external" users are not temporary, but limited. 1) they are unable to login via GUI 2) they are unable to change their password 3) usually dashboard is not accessible to them. Document upload download should work for them as expected On Mon, Oct 28, 2013 at

Re: Auto login: test loginUser()

2013-10-28 Thread 小野圭二
Thx Maxim, I got the user type clearly, maybe. So the external users account dose not need to register in OM user tables, right? It looks like temporally user, dose not it? If so, it is right that external user have not document repository. My understanding is correct? -Ono 2013/10/28 Maxim S

Re: Auto login: test loginUser()

2013-10-28 Thread Maxim Solodovnik
It seems to be misunderstanding (maybe because of my English :( ) There are 2 types of the user accounts in OM 2.x: 1) "real" users: users of different types (user, admin, soap) created by admin via OM GUI (Administration->Users menu) 2) external users, users created via REST/SOAP It doesn't real

Re: Auto login: test loginUser()

2013-10-28 Thread 小野圭二
I do not use SOAP. Just using REST. The procedure was the same as you said, but the only difference is at (2). Dose "real" user mean ordinary user ? In fact, REST' loginUser() dose not authorize any ordinary user. So i use a admin user account. Cause of it, all auto login users login with admin acc

Re: Auto login: test loginUser()

2013-10-28 Thread Maxim Solodovnik
I'm not sure I got your question :( The actual procedure of using SOAP is: *1)* get session ID (not authorized) *2)* authorize session using "real" OM user NOTE each call will check if rights are sufficient, so you can authorize with "user" successfully but will be unable to perform almost all act

Re: Auto login: test loginUser()

2013-10-27 Thread 小野圭二
In this case, whose thing dose a upload file belong? >From my test, when into room by auto login, for example login with admin but set 'user1' in setUserObjectAndGenerateRoomHash(), both of them have not the upload file. The test procedure as following. 1.do auto login with admin but set 'user1' 2

Re: Auto login: test loginUser()

2013-10-27 Thread Maxim Solodovnik
Actually you need user with admin or soap level to use soap/rest API. All parameters being set later in setuserobject... method should be for external user being set (usually joomla, moodle, WordPress etc. User) On Oct 26, 2013 11:49 AM, "Jacob C. Gaiski" wrote: > The user requesting the secure

Re: Auto login: test loginUser()

2013-10-25 Thread Jacob C. Gaiski
The user requesting the secure hash must have admin permissions regardless of the user object attributed to the user. Attributing an admin user to a user object will grant admin permissions, granting anonymous user attributes will grant anonymous action. I'm fairly certain I'm correct. Please c

Re: Auto login: test loginUser()

2013-10-25 Thread 小野圭二
I would like to confirm for auto login procedure. It seems like the username parameter of loginUser() must be a admin account. Dose it correct? If so, ordinary user (om_user.level_id=1) can not enter into any room by auto login. The procedure is as following. 1.get session data by using getSessi

Re: Auto login: test loginUser()

2013-10-25 Thread 小野圭二
HI Maxim, I have just tried one, and works fine. Great. Many thanks about your suggestion. So, have this procedure been opened where else, that like a wiki and/or tutorial ? I could not find it. If there is not yet, why not i write it on wiki ? -Ono 2013/10/25 小野圭二 > Thank you, Maxim. > I wi

Re: Auto login: test loginUser()

2013-10-25 Thread 小野圭二
Thank you, Maxim. I will try it tomorrow. :) 2013/10/25 Maxim Solodovnik > Yes > > > On Fri, Oct 25, 2013 at 7:37 PM, 小野圭二 wrote: > >> >>you should use URL like this >> >>http://localhos:5080/openmeetings/?secureHash=&language=1 >> to enter the room >> >> >> Is the "" the value of "" ? >> >>

Re: Auto login: test loginUser()

2013-10-25 Thread Maxim Solodovnik
Yes On Fri, Oct 25, 2013 at 7:37 PM, 小野圭二 wrote: > >>you should use URL like this > >>http://localhos:5080/openmeetings/?secureHash=&language=1 > to enter the room > > > Is the "" the value of "" ? > > http://services.axis.openmeetings.apache.org";> > a8e844da497727d8a0ec1db4447d9d60 setUserOb

Re: Auto login: test loginUser()

2013-10-25 Thread 小野圭二
>>you should use URL like this >>http://localhos:5080/openmeetings/?secureHash=&language=1 to enter the room Is the "" the value of "" ? http://services.axis.openmeetings.apache.org";> a8e844da497727d8a0ec1db4447d9d60 -Ono 2013/10/25 Maxim Solodovnik > you should use URL like this > http:/

Re: Auto login: test loginUser()

2013-10-25 Thread Maxim Solodovnik
you should use URL like this http://localhos:5080/openmeetings/?secureHash=&language=1 to enter the room On Fri, Oct 25, 2013 at 3:37 PM, 小野圭二 wrote: > 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

Re: Auto login: test loginUser()

2013-10-25 Thread 小野圭二
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. http://services.axis.openmeetings.apache.org ">a8e844da497727d8a0ec1db4447d9d60 It seems like containing a hash code. Should i use it

Re: Auto login: test loginUser()

2013-10-25 Thread Maxim Solodovnik
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

Re: Auto login: test loginUser()

2013-10-25 Thread 小野圭二
Thx Maxim, I tried setUserObj...() , but the return was error code that mean "Admin authorization required". http://services.axis.openmeetings.apache.org ">-26 This is the REST url that i called. http://localhost:5080/openmeetings/services/UserService/setUserObjectAndGenerateRoomHash?SID= ".$ses

Re: Auto login: test loginUser()

2013-10-24 Thread Maxim Solodovnik
you need to call http://openmeetings.apache.org/UserService.html#setUserObjectAndGenerateRoomHash then redirect to http://localhos:5080/openmeetings/?secureHash=&language=1 On Fri, Oct 25, 2013 at 1:23 PM, 小野圭二 wrote: > Hi, > > Let me know what should i do after loginUser() was success. > > I

Auto login: test loginUser()

2013-10-24 Thread 小野圭二
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. http://services.axis.openmeetings.ap