Hi guys.
I am trying to use the GetRoomHash of service web service in order to
redirect my user to a room without forcing the user to log in manually.
I am following this <http://openmeetings.apache.org/RestAPISample.html>
tutorial.
The code sample I am using is as follows. (C#)
There is an API in which I am generating hash code.
I am redirecting to my open-meeting installation with the use of the code.
var user = "admin";
> var pass = "adminpass";
> var openMeetingUserService = new
> Openmeetings.UserWebServiceClient();
> var loginResult = await
> openMeetingUserService.loginAsync(user, pass);
> if ([email protected] != "SUCCESS")
> throw new UserFriendlyException("Error in login.");
> var sid = [email protected];
>
>
> var roomHash = await
> openMeetingUserService.getRoomHashAsync(sid, new
> Openmeetings.externalUserDTO
> {
> externalId = "id89",
> externalType = "Tutykid",
> firstname = "Farid",
> lastname = "External",
> login = "externaluser1"
> }, new Openmeetings.roomOptionsDTO
> {
> allowSameURLMultipleTimes = true,
> roomId = roomId,
> moderator = true
> });
> return new GoToRoomOutput { RoomHash = [email protected]
> };
>
And the url I have generated based on the hash code/.
https://myinstallationhost/openmeetings/hash?secure=7d34224f-04c8-4546-87a9-f83c36ea03b1#id6
The room exists and is a public room
OM version: 5.0.0-M4
Revision: 9753e61
Build date: 2020-04-19T03:54:23Z
The error I have got upon rediraction is the following:
Invalid hash
> Access denied. You have no rights to enter this room.
Could anyone please help me on this issue. I have tried almost three days
but not found any workaround.
Thanks in advance.