[Building Sakai] New restful sessions using admin session

Francisco Saez francisco.saez.sakai at gmail.com
Fri Nov 7 01:26:07 PST 2014


This seems is not working for me.

Reading in the entitybroker source code, I get the function "public String
createEntity(EntityReference ref, Object entity, Map<String, Object>
params)". With the entity you can call to getUserId().

So, my problem is to find the way to pass an "entity" in the URL. Any clue?

2014-11-06 17:01 GMT+01:00 Miguel Carro Pellicer <miguel at educlever.es>:

>  Hi Francisco, have you tried this? /session/:ID:/edit
>
> Miguel.
>
> El 06/11/2014 a las 16:32, Francisco Saez escribió:
>
> Hi all,
>
>  I've been using the session restful service to create new sessions.
> We just need to call something like:
> (POST) .../direct/describe/session?_username=xxx&_password=yyy
>
>  Now I want to create new user sessions using my admin session. According
> with the description "NOTE: admins may create sessions for any user by just
> sending a request with valid session data".
>
>  My question now is, how should I do the call??
>
>  I've tried with (POST)
> .../direct/describe/session?sakai.session=ADMIN-SESSION-ID&UserId=xxx
> without success.
>
>  Any clue about this?
>
>  Thanks
>
>
> _______________________________________________
> sakai-dev mailing listsakai-dev at collab.sakaiproject.orghttp://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
>
>
> --
>   [image: Logo]
>
> Miguel Carro Pellicer
> <http://es.linkedin.com/pub/miguel-carro-pellicer/38/502/b92>
> *IT Consultant - Elearning solutions*
>
>  Phone: +34 - 686266485
> Email: miguel at educlever.es
>
> No me imprimas si no es necesario. Protejamos el medio ambiente
>
>
> AVISO LEGAL: El contenido de este mensaje de correo electrónico, incluidos
> los ficheros adjuntos, es confidencial y está protegido por el artículo
> 18.3 de la Constitución Española, que garantiza el secreto de las
> comunicaciones.
> Si usted recibe este mensaje por error, por favor póngase en contacto con
> el remitente para informarle de este hecho, y no difunda su contenido ni
> haga copias.
> *** Este mensaje ha sido verificado con herramientas de eliminación de
> virus y contenido malicioso ***
> Este aviso legal ha sido incorporado automáticamente al mensaje.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20141107/da4fab41/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AF-BRAND---EDUCLEVER-01.jpg
Type: image/jpeg
Size: 17251 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20141107/da4fab41/attachment.jpg 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linkedin.jpg
Type: image/jpeg
Size: 1103 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20141107/da4fab41/attachment-0001.jpg 


More information about the sakai-dev mailing list