Consider the following sitauation: you have some external system (for ex. CMS) you need to ensure user known to CMS will have an ability to use OM without any additional authentication request
your steps 1) create some configuration file/page add OM URL, user credentials of user with soap priviledges 2) create page/function you going to call to enter OM room 3) in this function a) call /user/login (providing soap user credentials) b) call /user/hash (providing current user details inside "ExternalUserDTO user" parameter 4) use hash generated to enter the room BTW you can use our PHP API to implement this https://github.com/openmeetings/openmeetings-api-plugin On Mon, Aug 15, 2016 at 10:00 AM, Andre Wruszczak <wruszc...@web.de> wrote: > I see, thanks for the input! > > How would I go at adding an user (registering) to the db? > > Because I apparently need the SID for adding an user. But I can only get an > SID via logging in. > > Thanks for all the help! > > Cheers > Andre > > -----Ursprüngliche Nachricht----- > Von: Maxim Solodovnik [mailto:solomax...@gmail.com] > Gesendet: Monday, August 15, 2016 4:27 AM > An: Openmeetings user-list <user@openmeetings.apache.org> > Betreff: Re: Not able to install with backup (3.02 to 3.12) "Enum missing" > > Hello Andre, > > Actually current REST/SOAP API was designed to be used from plugins so the > flow would be > > 1) login as "soap" user > 2) call [1] enter the room/watch recording using hash generated > > [1] > http://openmeetings.apache.org/openmeetings-webservice/apidocs/org/apache/openmeetings/webservice/UserWebService.html#getRoomHash(java.lang.String,%20org.apache.openmeetings.db.dto.user.ExternalUserDTO,%20org.apache.openmeetings.db.dto.room.RoomOptionsDTO) > > On Mon, Aug 15, 2016 at 8:29 AM, Andre Wruszczak <wruszc...@web.de> wrote: >> Hey Sebastian, >> >> >> >> The problem with the UserService in the new webservice is, that it >> needs the user to be either an admin or of type user with soap rights. >> >> In the existing software “externals” and “contatcs” were used, without >> any problems. I guess the only solution to this would be changing the >> type of every user to “user” in order for them to be able to log in via SOAP. >> >> >> >> Thanks again for the fast reply! >> >> Cheers >> >> Andre >> >> >> >> Von: seba.wag...@gmail.com [mailto:seba.wag...@gmail.com] >> Gesendet: Monday, August 15, 2016 3:14 AM >> >> >> An: Openmeetings user-list <user@openmeetings.apache.org> >> Betreff: Re: Not able to install with backup (3.02 to 3.12) "Enum missing" >> >> >> >> Yeah let's see if we can update the API samples. But there is a login >> method in the UserService: >> http://openmeetings.apache.org/openmeetings-webservice/apidocs/index.h >> tml >> >> In general the flow has not changed, just notation and documentation is new. >> >> >> >> Thanks, >> >> Sebastian >> >> >> >> 2016-08-15 12:49 GMT+12:00 Andre Wruszczak <wruszc...@web.de>: >> >> Hi Sebastian! >> >> Yes the problem was fixed once I deleted all the recordings. >> >> This helped me greatly, thanks! >> >> I will open the tickets first thing tomorrow. >> >> >> >> I have yet another question : >> >> http://openmeetings.apache.org/RestAPISample.html is very outdated. >> >> >> >> How do I login a normal non-admin user via the webservice in 3.1.2? >> I couldn’t find any documentation on that. >> >> >> >> Cheers >> >> Andre >> >> >> >> Von: seba.wag...@gmail.com [mailto:seba.wag...@gmail.com] >> Gesendet: Monday, August 15, 2016 12:36 AM >> An: Openmeetings user-list <user@openmeetings.apache.org> >> Betreff: Re: Not able to install with backup (3.02 to 3.12) "Enum missing" >> >> >> >> Hi Andre, >> >> >> >> this might be both a bug and a bit an unforeseeable recording status. >> >> >> >> I think a recording should never be stuck in the state of >> "Recording.Status.PROCESSING", I think that would mean the recording >> was not correctly finalised. >> >> >> >> So, two things to do: >> >> 1) Please fill a bug, there is a need to fix: >> https://svn.apache.org/viewvc/openmeetings/application/tags/3.1.2/open >> meetings-install/src/main/java/org/apache/openmeetings/backup/BackupIm >> port.java?view=markup >> >> >> >> to handle old Recording Status format types. >> >> Please open a ticket at: >> https://issues.apache.org/jira/browse/OPENMEETINGS >> >> >> >> You can assign it to me. >> >> >> >> 2) Please unzip the backup and look into the file "flvRecordings.xml". >> >> >> >> Maybe send me an example or put it somewhere on pastebin.com. >> >> But it should be as easy as replacing all occurrence of "Processing" >> and replace with "CONVERTING" >> >> >> >> Then zip it up again (keep in mind that I think you got to zip the >> content of the folder, not the root folder) and re-do the import. >> >> >> >> Thanks, >> >> Sebastian >> >> >> >> >> >> 2016-08-15 8:22 GMT+12:00 Andre Wruszczak <wruszc...@web.de>: >> >> Dear openmeetings user group, >> >> >> >> The problem persists, no matter how I try importing the backup. >> >> ./admin.sh -i or -r both do not work. >> I always get the same error. >> >> The Web-Client itself isn’t really an option, my backup is very big J >> >> >> >> >> >> Cheers >> >> Andre >> >> >> >> Von: Andre Wruszczak [mailto:wruszc...@web.de] >> Gesendet: Sunday, August 14, 2016 5:33 PM >> An: user@openmeetings.apache.org >> Betreff: Not able to install with backup (3.02 to 3.12) "Enum missing" >> >> >> >> Dear openmeetings user group, >> >> >> >> Today I tried upgrading my openmeetings version (from 3.02 to 3.12, >> made a backup of DB and OM from 3.02 and tried importing like >> presented in this guide : http://openmeetings.apache.org/Upgrade.html) >> and stumbled across following error : >> >> >> >> [ERROR] [main] org.apache.openmeetings.cli.Admin - Restore failed >> >> java.lang.IllegalArgumentException: No enum constant >> org.apache.openmeetings.db.entity.record.Recording.Status.PROCESSING >> >> at java.lang.Enum.valueOf(Enum.java:238) >> >> at >> org.simpleframework.xml.transform.EnumTransform.read(EnumTransform.jav >> a:58) >> >> at >> org.simpleframework.xml.transform.EnumTransform.read(EnumTransform.jav >> a:29) >> >> at >> org.simpleframework.xml.transform.Transformer.read(Transformer.java:10 >> 6) >> >> at org.simpleframework.xml.core.Support.read(Support.java:372) >> >> at >> org.simpleframework.xml.core.PrimitiveFactory.getInstance(PrimitiveFac >> tory.java:105) >> >> at >> org.simpleframework.xml.core.Primitive.readTemplate(Primitive.java:231 >> ) >> >> at >> org.simpleframework.xml.core.Primitive.read(Primitive.java:171) >> >> at >> org.simpleframework.xml.core.Primitive.readElement(Primitive.java:207) >> >> at >> org.simpleframework.xml.core.Primitive.readElement(Primitive.java:189) >> >> at >> org.simpleframework.xml.core.Primitive.read(Primitive.java:124) >> >> at >> org.simpleframework.xml.core.Composite.readVariable(Composite.java:623 >> ) >> >> at >> org.simpleframework.xml.core.Composite.readInstance(Composite.java:573 >> ) >> >> at >> org.simpleframework.xml.core.Composite.readUnion(Composite.java:549) >> >> at >> org.simpleframework.xml.core.Composite.readElement(Composite.java:532) >> >> at >> org.simpleframework.xml.core.Composite.readElements(Composite.java:445 >> ) >> >> at >> org.simpleframework.xml.core.Composite.access$400(Composite.java:59) >> >> at >> org.simpleframework.xml.core.Composite$Builder.read(Composite.java:138 >> 3) >> >> at >> org.simpleframework.xml.core.Composite.read(Composite.java:201) >> >> at >> org.simpleframework.xml.core.Composite.read(Composite.java:148) >> >> at >> org.simpleframework.xml.core.Traverser.read(Traverser.java:92) >> >> at >> org.simpleframework.xml.core.Persister.read(Persister.java:625) >> >> at >> org.simpleframework.xml.core.Persister.read(Persister.java:606) >> >> at >> org.simpleframework.xml.core.Persister.read(Persister.java:584) >> >> at >> org.apache.openmeetings.backup.BackupImport.readRecordingList(BackupIm >> port.java:825) >> >> at >> org.apache.openmeetings.backup.BackupImport.performImport(BackupImport >> .java:502) >> >> at org.apache.openmeetings.cli.Admin.restoreOm(Admin.java:521) >> >> at org.apache.openmeetings.cli.Admin.process(Admin.java:272) >> >> at org.apache.openmeetings.cli.Admin.main(Admin.java:528) >> >> This happened while running : ./admin.sh -i -file backup_yesterday.zip >> >> Everything up to this point went smoothly and was installed properly. >> But Rooms and Recordings have not been imported yet ( as the installer >> fails) >> >> >> >> Would really appreciate some help. Currently I am trying to install it >> via the Web-Client instead of the CLI – but I do not think that this >> will help at all. >> >> >> >> Cheers >> >> Andre >> >> >> >> >> >> -- >> >> Sebastian Wagner >> https://twitter.com/#!/dead_lock >> seba.wag...@gmail.com >> >> >> >> >> >> -- >> >> Sebastian Wagner >> https://twitter.com/#!/dead_lock >> seba.wag...@gmail.com > > > > -- > WBR > Maxim aka solomax > -- WBR Maxim aka solomax