You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-russian@openmeetings.apache.org by Sergei A Byakov <gu...@gmail.com> on 2017/01/16 08:48:34 UTC

Внешний пользователь. Нет прав

Версия 3.1.4
Проблема: через rest/soap api авторизация проходит успешно, нхеш создается,
но при входе в комнату

http://huntinglab.ru:5080/openmeetings/swf?secureHash=7d49f14a-a16f-4542-a486-b9c87934caad

Access denied. You have no rights to enter this room.

Если пользователю внешнему (external) дать права admin тогда проблемы нет.
Может есть какие тонкости по настроке комнаты или пользователя при
создании?

-- 


С Уважением, Сергей.

моб: 960 515 39 45
skype: sbyakov
https://www.facebook.com/s.byakov

Re: Внешний пользователь. Нет прав

Posted by Sergei A Byakov <gu...@gmail.com>.
лог




DEBUG 01-16 11:50:44.421 o.a.o.d.d.s.SessiondataDao:263
[org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-6] -
****** clearSessionTable:
DEBUG 01-16 11:50:44.427 o.a.o.d.d.s.SessiondataDao:265
[org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-6] -
clearSessionTable: 1
DEBUG 01-16 11:50:44.441 o.a.o.s.q.s.ReminderJob:44
[org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-3] -
ReminderJob.remindMeetings
DEBUG 01-16 11:50:46.134 o.a.o.c.m.MailHandler:279
[org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-10] -
sendMails enter ...
DEBUG 01-16 11:50:46.134 o.a.o.c.m.MailHandler:281
[org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-10] -
Number of emails in init queue 0
DEBUG 01-16 11:50:46.134 o.a.o.c.m.MailHandler:286
[org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-10] -
... sendMails done.
DEBUG 01-16 11:50:48.932 o.a.c.t.h.Headers:459
[http-nio-0.0.0.0-5080-exec-7] - Request Headers: {Accept=[*/*],
accept-encoding=[deflate, gzip], Authorization=[***], Content-Type=[null],
host=[huntinglab.ru:5080], Proxy-Authorization=[***],
user-agent=[openmeetings]}
DEBUG 01-16 11:50:48.934 o.a.c.p.PhaseInterceptorChain:243
[http-nio-0.0.0.0-5080-exec-7] - Adding interceptor
org.apache.cxf.transport.https.CertConstraintsInterceptor@2ddd9bbd to phase
pre-stream
DEBUG 01-16 11:50:48.934 o.a.c.p.PhaseInterceptorChain:733
[http-nio-0.0.0.0-5080-exec-7] - Chain
org.apache.cxf.phase.PhaseInterceptorChain@42104c8d was created. Current
flow:
  receive [PolicyInInterceptor, LoggingInInterceptor]
  pre-stream [CertConstraintsInterceptor]
  unmarshal [JAXRSInInterceptor]
  pre-logical [OneWayProcessorInterceptor]
  invoke [ServiceInvokerInterceptor]
  post-invoke [OutgoingChainInterceptor]

DEBUG 01-16 11:50:48.934 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-7] - Invoking handleMessage on interceptor
org.apache.cxf.ws.policy.PolicyInInterceptor@23d12f3a
DEBUG 01-16 11:50:48.935 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-7] - Invoking handleMessage on interceptor
org.apache.cxf.interceptor.LoggingInInterceptor@15c1afcf
DEBUG 01-16 11:50:48.936 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-7] - Invoking handleMessage on interceptor
org.apache.cxf.transport.https.CertConstraintsInterceptor@2ddd9bbd
DEBUG 01-16 11:50:48.936 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-7] - Invoking handleMessage on interceptor
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor@6b69cf44
DEBUG 01-16 11:50:48.939 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-7] - Invoking handleMessage on interceptor
org.apache.cxf.interceptor.OneWayProcessorInterceptor@3fc3eff2
DEBUG 01-16 11:50:48.939 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-7] - Invoking handleMessage on interceptor
org.apache.cxf.interceptor.ServiceInvokerInterceptor@6ab28c87
DEBUG 01-16 11:50:48.940 o.a.o.w.UserWebService:105
[http-nio-0.0.0.0-5080-exec-7] - Login user
DEBUG 01-16 11:50:48.949 o.a.o.d.d.u.UserDao:626
[http-nio-0.0.0.0-5080-exec-7] - login:: 1 users were found
DEBUG 01-16 11:50:48.956 o.a.o.u.c.CryptProvider:32
[http-nio-0.0.0.0-5080-exec-7] - getInstanceOfCrypt::
configKeyCryptClassName:
org.apache.openmeetings.util.crypt.MD5Implementation
DEBUG 01-16 11:50:48.958 o.a.o.d.u.AuthLevelUtil:39
[http-nio-0.0.0.0-5080-exec-7] - Level Login :: [GRANTED]
DEBUG 01-16 11:50:48.960 o.a.o.d.d.u.UserDao:643
[http-nio-0.0.0.0-5080-exec-7] - loginUser [GroupUser [id=4,
moderator=false, group=Group [id=1, name=huntinglab, deleted=false],
user=User [id=2, firstname=????????????, lastname=???????, login=extuser,
pictureuri=null, deleted=false, languageId=9, address=Address [id=2,
country=US, street=null, town=null, zip=null, deleted=false, email=
extuser@huntinglab.ru, phone=null], externalId=null, externalType=null,
type=user]]]
DEBUG 01-16 11:50:48.967 o.a.o.d.d.s.SessiondataDao:58
[http-nio-0.0.0.0-5080-exec-7] - startsession :: startsession
DEBUG 01-16 11:50:48.979 o.a.o.w.UserWebService:112
[http-nio-0.0.0.0-5080-exec-7] - Login user SID :
dc8e2d0a-ed72-4774-bf42-10867093113c
DEBUG 01-16 11:50:48.980 o.a.o.d.d.s.SessiondataDao:159
[http-nio-0.0.0.0-5080-exec-7] - updateUser User: 2 ||
dc8e2d0a-ed72-4774-bf42-10867093113c
DEBUG 01-16 11:50:48.983 o.a.o.d.d.s.SessiondataDao:173
[http-nio-0.0.0.0-5080-exec-7] - Found session to update:
dc8e2d0a-ed72-4774-bf42-10867093113c, userId: 2
DEBUG 01-16 11:50:48.989 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-7] - Invoking handleMessage on interceptor
org.apache.cxf.interceptor.OutgoingChainInterceptor@3309bf15
DEBUG 01-16 11:50:48.990 o.a.c.p.PhaseInterceptorChain:733
[http-nio-0.0.0.0-5080-exec-7] - Chain
org.apache.cxf.phase.PhaseInterceptorChain@50b3a4b9 was created. Current
flow:
  setup [PolicyOutInterceptor]
  prepare-send [MessageSenderInterceptor]
  pre-stream [LoggingOutInterceptor]
  marshal [JAXRSOutInterceptor]

DEBUG 01-16 11:50:48.990 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-7] - Invoking handleMessage on interceptor
org.apache.cxf.ws.policy.PolicyOutInterceptor@3c8858a5
DEBUG 01-16 11:50:48.990 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-7] - Invoking handleMessage on interceptor
org.apache.cxf.interceptor.MessageSenderInterceptor@3a3ac2fe
DEBUG 01-16 11:50:48.991 o.a.c.p.PhaseInterceptorChain:243
[http-nio-0.0.0.0-5080-exec-7] - Adding interceptor
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor@634ba29c
to phase prepare-send-ending
DEBUG 01-16 11:50:48.991 o.a.c.p.PhaseInterceptorChain:731
[http-nio-0.0.0.0-5080-exec-7] - Chain
org.apache.cxf.phase.PhaseInterceptorChain@50b3a4b9 was modified. Current
flow:
  setup [PolicyOutInterceptor]
  prepare-send [MessageSenderInterceptor]
  pre-stream [LoggingOutInterceptor]
  marshal [JAXRSOutInterceptor]
  prepare-send-ending [MessageSenderEndingInterceptor]

DEBUG 01-16 11:50:48.991 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-7] - Invoking handleMessage on interceptor
org.apache.cxf.interceptor.LoggingOutInterceptor@41ad40f7
DEBUG 01-16 11:50:48.991 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-7] - Invoking handleMessage on interceptor
org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor@2d9f6b78
DEBUG 01-16 11:50:48.993 o.a.c.w.a.ContextUtils:241
[http-nio-0.0.0.0-5080-exec-7] - retrieving MAPs from context property
javax.xml.ws.addressing.context.inbound
DEBUG 01-16 11:50:48.994 o.a.c.w.a.ContextUtils:449
[http-nio-0.0.0.0-5080-exec-7] - WS-Addressing - failed to retrieve Message
Addressing Properties from context
DEBUG 01-16 11:50:48.995 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-7] - Invoking handleMessage on interceptor
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor@634ba29c
DEBUG 01-16 11:50:49.000 o.a.c.t.h.Headers:459
[http-nio-0.0.0.0-5080-exec-9] - Request Headers: {Accept=[*/*],
accept-encoding=[deflate, gzip], Authorization=[***], Content-Length=[374],
content-type=[application/x-www-form-urlencoded], host=[huntinglab.ru:5080],
Proxy-Authorization=[***], user-agent=[openmeetings]}
DEBUG 01-16 11:50:49.000 o.a.c.p.PhaseInterceptorChain:243
[http-nio-0.0.0.0-5080-exec-9] - Adding interceptor
org.apache.cxf.transport.https.CertConstraintsInterceptor@2ddd9bbd to phase
pre-stream
DEBUG 01-16 11:50:49.001 o.a.c.p.PhaseInterceptorChain:733
[http-nio-0.0.0.0-5080-exec-9] - Chain
org.apache.cxf.phase.PhaseInterceptorChain@4f551c7d was created. Current
flow:
  receive [PolicyInInterceptor, LoggingInInterceptor]
  pre-stream [CertConstraintsInterceptor]
  unmarshal [JAXRSInInterceptor]
  pre-logical [OneWayProcessorInterceptor]
  invoke [ServiceInvokerInterceptor]
  post-invoke [OutgoingChainInterceptor]

DEBUG 01-16 11:50:49.001 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-9] - Invoking handleMessage on interceptor
org.apache.cxf.ws.policy.PolicyInInterceptor@23d12f3a
DEBUG 01-16 11:50:49.002 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-9] - Invoking handleMessage on interceptor
org.apache.cxf.interceptor.LoggingInInterceptor@15c1afcf
DEBUG 01-16 11:50:49.002 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-9] - Invoking handleMessage on interceptor
org.apache.cxf.transport.https.CertConstraintsInterceptor@2ddd9bbd
DEBUG 01-16 11:50:49.003 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-9] - Invoking handleMessage on interceptor
org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor@6b69cf44
DEBUG 01-16 11:50:49.005 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-9] - Invoking handleMessage on interceptor
org.apache.cxf.interceptor.OneWayProcessorInterceptor@3fc3eff2
DEBUG 01-16 11:50:49.006 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-9] - Invoking handleMessage on interceptor
org.apache.cxf.interceptor.ServiceInvokerInterceptor@6ab28c87
DEBUG 01-16 11:50:49.017 o.a.o.d.u.AuthLevelUtil:39
[http-nio-0.0.0.0-5080-exec-9] - Level Soap :: [GRANTED]
DEBUG 01-16 11:50:49.017 o.a.o.w.UserWebService:293
[http-nio-0.0.0.0-5080-exec-9] - RemoteSessionObject [username=USER NAME,
firstname=FIRST NAME, lastname=LAST NAME, pictureUrl=null, email=
gunslover@gmail.com, externalUserId=2, externalUserType=HuntingLabCMS]
DEBUG 01-16 11:50:49.019 o.a.o.w.UserWebService:297
[http-nio-0.0.0.0-5080-exec-9] - xmlString <remoteSessionObject>
   <username>USERNAME</username>
   <firstname>FIRST NAME</firstname>
   <lastname>LAST NAME</lastname>
   <email>gunslover@gmail.com</email>
   <externalUserId>2</externalUserId>
   <externalUserType>HuntingLabCMS</externalUserType>
</remoteSessionObject>
DEBUG 01-16 11:50:49.028 o.a.o.d.d.s.SessiondataDao:70
[http-nio-0.0.0.0-5080-exec-9] - updateUser User SID:
dc8e2d0a-ed72-4774-bf42-10867093113c
DEBUG 01-16 11:50:49.088 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-9] - Invoking handleMessage on interceptor
org.apache.cxf.interceptor.OutgoingChainInterceptor@3309bf15
DEBUG 01-16 11:50:49.088 o.a.c.p.PhaseInterceptorChain:733
[http-nio-0.0.0.0-5080-exec-9] - Chain
org.apache.cxf.phase.PhaseInterceptorChain@41f06675 was created. Current
flow:
  setup [PolicyOutInterceptor]
  prepare-send [MessageSenderInterceptor]
  pre-stream [LoggingOutInterceptor]
  marshal [JAXRSOutInterceptor]

DEBUG 01-16 11:50:49.089 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-9] - Invoking handleMessage on interceptor
org.apache.cxf.ws.policy.PolicyOutInterceptor@3c8858a5
DEBUG 01-16 11:50:49.089 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-9] - Invoking handleMessage on interceptor
org.apache.cxf.interceptor.MessageSenderInterceptor@3a3ac2fe
DEBUG 01-16 11:50:49.089 o.a.c.p.PhaseInterceptorChain:243
[http-nio-0.0.0.0-5080-exec-9] - Adding interceptor
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor@634ba29c
to phase prepare-send-ending
DEBUG 01-16 11:50:49.089 o.a.c.p.PhaseInterceptorChain:731
[http-nio-0.0.0.0-5080-exec-9] - Chain
org.apache.cxf.phase.PhaseInterceptorChain@41f06675 was modified. Current
flow:
  setup [PolicyOutInterceptor]
  prepare-send [MessageSenderInterceptor]
  pre-stream [LoggingOutInterceptor]
  marshal [JAXRSOutInterceptor]
  prepare-send-ending [MessageSenderEndingInterceptor]

DEBUG 01-16 11:50:49.090 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-9] - Invoking handleMessage on interceptor
org.apache.cxf.interceptor.LoggingOutInterceptor@41ad40f7
DEBUG 01-16 11:50:49.090 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-9] - Invoking handleMessage on interceptor
org.apache.cxf.jaxrs.interceptor.JAXRSOutInterceptor@2d9f6b78
DEBUG 01-16 11:50:49.092 o.a.c.w.a.ContextUtils:241
[http-nio-0.0.0.0-5080-exec-9] - retrieving MAPs from context property
javax.xml.ws.addressing.context.inbound
DEBUG 01-16 11:50:49.092 o.a.c.w.a.ContextUtils:449
[http-nio-0.0.0.0-5080-exec-9] - WS-Addressing - failed to retrieve Message
Addressing Properties from context
DEBUG 01-16 11:50:49.092 o.a.c.p.PhaseInterceptorChain:305
[http-nio-0.0.0.0-5080-exec-9] - Invoking handleMessage on interceptor
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor@634ba29c
DEBUG 01-16 11:50:51.113 o.a.o.d.d.s.SessiondataDao:263
[org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-7] -
****** clearSessionTable:
DEBUG 01-16 11:50:51.116 o.a.o.d.d.s.SessiondataDao:265
[org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-7] -
clearSessionTable: 0
DEBUG 01-16 11:50:51.125 o.a.o.s.q.s.ReminderJob:44
[org.springframework.scheduling.quartz.SchedulerFactoryBean#0_Worker-5] -
ReminderJob.remindMeetings
DEBUG 01-16 11:50:56.708 o.a.o.d.d.s.SessiondataDao:70
[http-nio-0.0.0.0-5080-exec-10] - updateUser User SID:
dc8e2d0a-ed72-4774-bf42-10867093113c
DEBUG 01-16 11:50:56.735 o.a.o.d.d.s.SessiondataDao:131
[http-nio-0.0.0.0-5080-exec-10] - updateUser User: 3 || null
ERROR 01-16 11:50:56.737 o.a.o.d.d.s.SessiondataDao:143
[http-nio-0.0.0.0-5080-exec-10] - Could not find session to Update
DEBUG 01-16 11:50:56.741 o.a.o.d.u.AuthLevelUtil:39
[http-nio-0.0.0.0-5080-exec-10] - Level Admin :: [DENIED]
DEBUG 01-16 11:50:56.796 o.a.o.d.d.s.SessiondataDao:70
[http-nio-0.0.0.0-5080-exec-6] - updateUser User SID:
dc8e2d0a-ed72-4774-bf42-10867093113c
DEBUG 01-16 11:50:56.812 o.a.o.d.d.s.SessiondataDao:131
[http-nio-0.0.0.0-5080-exec-6] - updateUser User: 3 || null
ERROR 01-16 11:50:56.813 o.a.o.d.d.s.SessiondataDao:143
[http-nio-0.0.0.0-5080-exec-6] - Could not find session to Update
DEBUG 01-16 11:50:56.813 o.a.o.d.u.AuthLevelUtil:39
[http-nio-0.0.0.0-5080-exec-6] - Level Admin :: [DENIED]



16 января 2017 г., 11:48 пользователь Sergei A Byakov <gu...@gmail.com>
написал:

> Версия 3.1.4
> Проблема: через rest/soap api авторизация проходит успешно, нхеш
> создается, но при входе в комнату
>
> http://huntinglab.ru:5080/openmeetings/swf?secureHash=
> 7d49f14a-a16f-4542-a486-b9c87934caad
>
> Access denied. You have no rights to enter this room.
>
> Если пользователю внешнему (external) дать права admin тогда проблемы нет.
> Может есть какие тонкости по настроке комнаты или пользователя при
> создании?
>
> --
>
>
> С Уважением, Сергей.
>
> моб: 960 515 39 45
> skype: sbyakov
> https://www.facebook.com/s.byakov
>



-- 


С Уважением, Сергей.

моб: 960 515 39 45
skype: sbyakov
https://www.facebook.com/s.byakov

Re: Внешний пользователь. Нет прав

Posted by Maxim Solodovnik <so...@gmail.com>.
сейчас проверил Moodle plugin, он работает (почему-то)

пример не работает
https://issues.apache.org/jira/browse/OPENMEETINGS-1530

в 3.1.5-SNAPSHOT - починено:
https://builds.apache.org/view/M-R/view/OpenMeetings/job/Openmeetings%203.1.x/
  516+

2017-01-16 19:41 GMT+07:00 Sergei A Byakov <gu...@gmail.com>:

> откатился на 3.1.3 там все работает.
>
> 16 января 2017 г., 15:11 пользователь Sergei A Byakov <gunslover@gmail.com
> >
> написал:
>
> > вот ответы вебсервиса первые два json и url для входа в комнату
> >
> > http://dev.huntinglab.ru/ajax/webinar/20
> >
> > логин пользователя с правами soap
> > {"serviceResult":{"code":2,"message":"e1d90968-a91b-4d05-
> 83d3-3a0c6b0c5a8c","type":"SUCCESS"}}
> >
> > генерация hash
> > {"serviceResult":{"code":0,"message":"d0984a33-178d-4b83-
> 9e62-cfad0c02fce4","type":"SUCCESS"}}
> >
> > ниже мой обработчик уже, который возвращает url для входа в вебинар
> > {"status":"OK","data":"http://huntinglab.ru:5080/
> openmeetings/swf?secureHash=d0984a33-178d-4b83-9e62-cfad0c02fce4"}
> >
> >
> >
> >
> > 16 января 2017 г., 11:55 пользователь Sergei A Byakov <
> gunslover@gmail.com
> > > написал:
> >
> > так и сделано.
> >> 1. пользователь заведен с правом soap
> >> 2. им логинится, передавая пользователя и ид комнаты для получения хеша
> >> 3. при использовании хеша валится.
> >>
> >> 16 января 2017 г., 11:52 пользователь Maxim Solodovnik <
> >> solomax666@gmail.com> написал:
> >>
> >> порядок авторизации не тот
> >>> нужно
> >>>
> >>> 0) завести пользователя с правами soap
> >>> 1) залогиниться пользователем soap
> >>> 2) сгенерировать hash (указав параметры external user'a)
> >>> 3) воспользовать hash
> >>>
> >>> пример тут
> >>> http://openmeetings.apache.org/RestAPISample.html
> >>>
> >>> 2017-01-16 15:48 GMT+07:00 Sergei A Byakov <gu...@gmail.com>:
> >>>
> >>> > Версия 3.1.4
> >>> > Проблема: через rest/soap api авторизация проходит успешно, нхеш
> >>> создается,
> >>> > но при входе в комнату
> >>> >
> >>> > http://huntinglab.ru:5080/openmeetings/swf?secureHash=
> >>> > 7d49f14a-a16f-4542-a486-b9c87934caad
> >>> >
> >>> > Access denied. You have no rights to enter this room.
> >>> >
> >>> > Если пользователю внешнему (external) дать права admin тогда проблемы
> >>> нет.
> >>> > Может есть какие тонкости по настроке комнаты или пользователя при
> >>> > создании?
> >>> >
> >>> > --
> >>> >
> >>> >
> >>> > С Уважением, Сергей.
> >>> >
> >>> > моб: 960 515 39 45
> >>> > skype: sbyakov
> >>> > https://www.facebook.com/s.byakov
> >>> >
> >>>
> >>>
> >>>
> >>> --
> >>> WBR
> >>> Maxim aka solomax
> >>>
> >>
> >>
> >>
> >> --
> >>
> >>
> >> С Уважением, Сергей.
> >>
> >> моб: 960 515 39 45
> >> skype: sbyakov
> >> https://www.facebook.com/s.byakov
> >>
> >
> >
> >
> > --
> >
> >
> > С Уважением, Сергей.
> >
> > моб: 960 515 39 45
> > skype: sbyakov
> > https://www.facebook.com/s.byakov
> >
>
>
>
> --
>
>
> С Уважением, Сергей.
>
> моб: 960 515 39 45
> skype: sbyakov
> https://www.facebook.com/s.byakov
>



-- 
WBR
Maxim aka solomax

Re: Внешний пользователь. Нет прав

Posted by Sergei A Byakov <gu...@gmail.com>.
откатился на 3.1.3 там все работает.

16 января 2017 г., 15:11 пользователь Sergei A Byakov <gu...@gmail.com>
написал:

> вот ответы вебсервиса первые два json и url для входа в комнату
>
> http://dev.huntinglab.ru/ajax/webinar/20
>
> логин пользователя с правами soap
> {"serviceResult":{"code":2,"message":"e1d90968-a91b-4d05-83d3-3a0c6b0c5a8c","type":"SUCCESS"}}
>
> генерация hash
> {"serviceResult":{"code":0,"message":"d0984a33-178d-4b83-9e62-cfad0c02fce4","type":"SUCCESS"}}
>
> ниже мой обработчик уже, который возвращает url для входа в вебинар
> {"status":"OK","data":"http://huntinglab.ru:5080/openmeetings/swf?secureHash=d0984a33-178d-4b83-9e62-cfad0c02fce4"}
>
>
>
>
> 16 января 2017 г., 11:55 пользователь Sergei A Byakov <gunslover@gmail.com
> > написал:
>
> так и сделано.
>> 1. пользователь заведен с правом soap
>> 2. им логинится, передавая пользователя и ид комнаты для получения хеша
>> 3. при использовании хеша валится.
>>
>> 16 января 2017 г., 11:52 пользователь Maxim Solodovnik <
>> solomax666@gmail.com> написал:
>>
>> порядок авторизации не тот
>>> нужно
>>>
>>> 0) завести пользователя с правами soap
>>> 1) залогиниться пользователем soap
>>> 2) сгенерировать hash (указав параметры external user'a)
>>> 3) воспользовать hash
>>>
>>> пример тут
>>> http://openmeetings.apache.org/RestAPISample.html
>>>
>>> 2017-01-16 15:48 GMT+07:00 Sergei A Byakov <gu...@gmail.com>:
>>>
>>> > Версия 3.1.4
>>> > Проблема: через rest/soap api авторизация проходит успешно, нхеш
>>> создается,
>>> > но при входе в комнату
>>> >
>>> > http://huntinglab.ru:5080/openmeetings/swf?secureHash=
>>> > 7d49f14a-a16f-4542-a486-b9c87934caad
>>> >
>>> > Access denied. You have no rights to enter this room.
>>> >
>>> > Если пользователю внешнему (external) дать права admin тогда проблемы
>>> нет.
>>> > Может есть какие тонкости по настроке комнаты или пользователя при
>>> > создании?
>>> >
>>> > --
>>> >
>>> >
>>> > С Уважением, Сергей.
>>> >
>>> > моб: 960 515 39 45
>>> > skype: sbyakov
>>> > https://www.facebook.com/s.byakov
>>> >
>>>
>>>
>>>
>>> --
>>> WBR
>>> Maxim aka solomax
>>>
>>
>>
>>
>> --
>>
>>
>> С Уважением, Сергей.
>>
>> моб: 960 515 39 45
>> skype: sbyakov
>> https://www.facebook.com/s.byakov
>>
>
>
>
> --
>
>
> С Уважением, Сергей.
>
> моб: 960 515 39 45
> skype: sbyakov
> https://www.facebook.com/s.byakov
>



-- 


С Уважением, Сергей.

моб: 960 515 39 45
skype: sbyakov
https://www.facebook.com/s.byakov

Re: Внешний пользователь. Нет прав

Posted by Sergei A Byakov <gu...@gmail.com>.
вот ответы вебсервиса первые два json и url для входа в комнату

http://dev.huntinglab.ru/ajax/webinar/20

логин пользователя с правами soap
{"serviceResult":{"code":2,"message":"e1d90968-a91b-4d05-83d3-3a0c6b0c5a8c","type":"SUCCESS"}}

генерация hash
{"serviceResult":{"code":0,"message":"d0984a33-178d-4b83-9e62-cfad0c02fce4","type":"SUCCESS"}}

ниже мой обработчик уже, который возвращает url для входа в вебинар
{"status":"OK","data":"http://huntinglab.ru:5080/openmeetings/swf?secureHash=d0984a33-178d-4b83-9e62-cfad0c02fce4"}




16 января 2017 г., 11:55 пользователь Sergei A Byakov <gu...@gmail.com>
написал:

> так и сделано.
> 1. пользователь заведен с правом soap
> 2. им логинится, передавая пользователя и ид комнаты для получения хеша
> 3. при использовании хеша валится.
>
> 16 января 2017 г., 11:52 пользователь Maxim Solodovnik <
> solomax666@gmail.com> написал:
>
> порядок авторизации не тот
>> нужно
>>
>> 0) завести пользователя с правами soap
>> 1) залогиниться пользователем soap
>> 2) сгенерировать hash (указав параметры external user'a)
>> 3) воспользовать hash
>>
>> пример тут
>> http://openmeetings.apache.org/RestAPISample.html
>>
>> 2017-01-16 15:48 GMT+07:00 Sergei A Byakov <gu...@gmail.com>:
>>
>> > Версия 3.1.4
>> > Проблема: через rest/soap api авторизация проходит успешно, нхеш
>> создается,
>> > но при входе в комнату
>> >
>> > http://huntinglab.ru:5080/openmeetings/swf?secureHash=
>> > 7d49f14a-a16f-4542-a486-b9c87934caad
>> >
>> > Access denied. You have no rights to enter this room.
>> >
>> > Если пользователю внешнему (external) дать права admin тогда проблемы
>> нет.
>> > Может есть какие тонкости по настроке комнаты или пользователя при
>> > создании?
>> >
>> > --
>> >
>> >
>> > С Уважением, Сергей.
>> >
>> > моб: 960 515 39 45
>> > skype: sbyakov
>> > https://www.facebook.com/s.byakov
>> >
>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>
>
> --
>
>
> С Уважением, Сергей.
>
> моб: 960 515 39 45
> skype: sbyakov
> https://www.facebook.com/s.byakov
>



-- 


С Уважением, Сергей.

моб: 960 515 39 45
skype: sbyakov
https://www.facebook.com/s.byakov

Re: Внешний пользователь. Нет прав

Posted by Sergei A Byakov <gu...@gmail.com>.
так и сделано.
1. пользователь заведен с правом soap
2. им логинится, передавая пользователя и ид комнаты для получения хеша
3. при использовании хеша валится.

16 января 2017 г., 11:52 пользователь Maxim Solodovnik <solomax666@gmail.com
> написал:

> порядок авторизации не тот
> нужно
>
> 0) завести пользователя с правами soap
> 1) залогиниться пользователем soap
> 2) сгенерировать hash (указав параметры external user'a)
> 3) воспользовать hash
>
> пример тут
> http://openmeetings.apache.org/RestAPISample.html
>
> 2017-01-16 15:48 GMT+07:00 Sergei A Byakov <gu...@gmail.com>:
>
> > Версия 3.1.4
> > Проблема: через rest/soap api авторизация проходит успешно, нхеш
> создается,
> > но при входе в комнату
> >
> > http://huntinglab.ru:5080/openmeetings/swf?secureHash=
> > 7d49f14a-a16f-4542-a486-b9c87934caad
> >
> > Access denied. You have no rights to enter this room.
> >
> > Если пользователю внешнему (external) дать права admin тогда проблемы
> нет.
> > Может есть какие тонкости по настроке комнаты или пользователя при
> > создании?
> >
> > --
> >
> >
> > С Уважением, Сергей.
> >
> > моб: 960 515 39 45
> > skype: sbyakov
> > https://www.facebook.com/s.byakov
> >
>
>
>
> --
> WBR
> Maxim aka solomax
>



-- 


С Уважением, Сергей.

моб: 960 515 39 45
skype: sbyakov
https://www.facebook.com/s.byakov

Re: Внешний пользователь. Нет прав

Posted by Maxim Solodovnik <so...@gmail.com>.
порядок авторизации не тот
нужно

0) завести пользователя с правами soap
1) залогиниться пользователем soap
2) сгенерировать hash (указав параметры external user'a)
3) воспользовать hash

пример тут
http://openmeetings.apache.org/RestAPISample.html

2017-01-16 15:48 GMT+07:00 Sergei A Byakov <gu...@gmail.com>:

> Версия 3.1.4
> Проблема: через rest/soap api авторизация проходит успешно, нхеш создается,
> но при входе в комнату
>
> http://huntinglab.ru:5080/openmeetings/swf?secureHash=
> 7d49f14a-a16f-4542-a486-b9c87934caad
>
> Access denied. You have no rights to enter this room.
>
> Если пользователю внешнему (external) дать права admin тогда проблемы нет.
> Может есть какие тонкости по настроке комнаты или пользователя при
> создании?
>
> --
>
>
> С Уважением, Сергей.
>
> моб: 960 515 39 45
> skype: sbyakov
> https://www.facebook.com/s.byakov
>



-- 
WBR
Maxim aka solomax