Foros de discusión

OpenSocial Signed requests

Carlos Vicente, modificado hace 13 años.

OpenSocial Signed requests

Junior Member Mensajes: 25 Fecha de incorporación: 8/06/10 Mensajes recientes
I'm testing the opensocial capabilities of liferay in order to integrate another apps inside not made in Java.

I sucesfully tested many gadgets and make use of gadgets.io.makeRequest() in order to make RPC calls to the external server, but i need that these request works as Signed Requests.
If i put
params[gadgets.io.RequestParameters.AUTHORIZATION] = gadgets.io.AuthorizationType.SIGNED;
i think that the request is not made.

how can i configure liferay in order to use such opensocial feature?
thumbnail
Dennis Ju, modificado hace 13 años.

RE: OpenSocial Signed requests

Regular Member Mensajes: 228 Fecha de incorporación: 30/09/10 Mensajes recientes
Hello Carlos,

Signed requests makes use of portions of the OAuth authorization protocol which has not yet been implemented in the OpenSocial portlet.

We have a working prototype that supports OAuth/signed requests, so be on the lookout for an update to trunk.
Kirk Stork, modificado hace 11 años.

RE: OpenSocial Signed requests

Junior Member Mensajes: 33 Fecha de incorporación: 19/05/10 Mensajes recientes
Dennis,

What's the status of this?

I've been trying to do the OpenSocial 0.9 tutorial, and can't even get past the first data pipelining example.

http://docs.opensocial.org/display/OSREF/Social+Application+Tutorial+%28v0.9%29


The gadget spec (adjusted to hit a web app running on port 8081 on localhost

<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Social Application Tutorial - Data Pipeline">
<Require feature="opensocial-data"/>
</ModulePrefs>
<Content view="profile"
href="http://localhost:8081/profile"
authz="signed"
xmlns:os="http://ns.opensocial.org/2008/markup">
<osemoticonwnerRequest key="owner_info" fields="displayName"/>
</Content>
</Module>

Seems to load okay in a liferay running at localhost:8080, but returns a 404 in the web console and a 403 in the gadget's display area. (I can do a POST to http://localhost:8081/profile with curl and the request works, so I'm pretty sure it isn't a web application problem on port 8081.)
Luis Mendes, modificado hace 10 años.

RE: OpenSocial Signed requests

New Member Mensaje: 1 Fecha de incorporación: 3/02/14 Mensajes recientes
I am trying the same example and keep getting 403 errors. Any words on that?

Thanks in advance.