seiif / share-extras

Automatically exported from code.google.com/p/share-extras
0 stars 0 forks source link

Would be nice with an example with java backed webscript in share #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Please file this as an enhancement request. 

I have an idea to write a dashlet for the yammer service (yammer.com corporate 
twitter like service). For that to work I would need to authenticate with the 
yammer api using oAuth. Google as well uses this form of authentication. 
However to do this you will need to write a server side java backed webscript. 
In the Alfresco documentation sources I've been reading all java backed 
webscript examples are deployed to the Alfresco repository server and not in 
Share. Since I would like to package the dashlet in a single jar (or probably 
an amp) and since there is no interaction at all with the alfresco repository I 
want to deploy everything in Alfresco Share. 

A nice enhancement to this library of dashlets would be an example dashlet with 
a java backed webscript deployed solely into Alfresco share.

Thanks
/Erik

Original issue reported on code.google.com by bille...@gmail.com on 11 May 2011 at 12:04

GoogleCodeExporter commented 8 years ago
I don't believe there is a restriction on Java web scripts only being possible 
in the repository, but you're right that Share doesn't have many examples. The 
messages web script is one, I believe.

But, rather than write a Java web script that does it's own authentication 
thing, a better way in Share/Surf would be to write an OAuth Surf connector, 
which can then be used from your JavaScript code.

Original comment by will.abson on 26 May 2011 at 3:22

GoogleCodeExporter commented 8 years ago
Yeah you are probably right. So I have to write an authenticator that is 
plugged into a connector if I understand it correctly. So there is probable an 
Alfresco authenticator in the source code that can give me a clue on how to do 
this. I would be a great extension to share extras - thats for sure, since a 
lot of apis out there uses oAuth for its authentication.

Original comment by bille...@gmail.com on 27 May 2011 at 9:41

GoogleCodeExporter commented 8 years ago
Hi Erik, in case you have not seen this see 
http://code.google.com/p/share-extras/wiki/YammerDashlet. If you have feedback 
on the add-on please let me know.

Original comment by will.abson on 11 Nov 2011 at 5:29

GoogleCodeExporter commented 8 years ago
Well Will, I saw you demonstrate it yesterday in London ;)

Thanks, great work BTW.

Original comment by bille...@gmail.com on 11 Nov 2011 at 5:32