Closed GoogleCodeExporter closed 9 years ago
Hi Jacob, the OAuth JAR actually needs to be placed in WEB-INF/lib inside both
the Share and Alfresco webapps, due to the way Tomcat's classloader works. This
should be clear in the docs but if it is not then please add a note to this
ticket.
Original comment by will.abson
on 7 Nov 2011 at 11:14
Hi Will, that's not in the wiki. The wiki says "To install the add-on, simply
drop the share-oauth.jar file into the tomcat/shared/lib folder".
I've put the OAuth JAR in tomcat/webapps/alfresco/WEB-INF/lib and
tomcat/webapps/share/WEB-INF/lib and now the Linkedin and Twitter dashlets are
working fine.
Yammer asks for a verification code, which I don't have.
Original comment by jacobmde...@gmail.com
on 8 Nov 2011 at 12:22
Thanks for checking, Jacob. I've updated the wiki docs now so they should be
accurate.
Regarding the Yammer dashlet, you should find that Yammer gives you this in a
new window in your browser. I've updated the prompt text in SVN to make this
slightly clearer.
Original comment by will.abson
on 8 Nov 2011 at 10:15
Hi Will,
Yammer is still not working, due to an authorization error. Maybe you cab help
me figure this out..
The authorization of the dashlet gives an error.
A new window opens in the browser.
The URL =
https://www.yammer.com/rotterdam.nl/oauth/invalid_client_application?client_appl
ication_id=4350
And the following is displayed: "Authorization Error
The application Share Extras can not be authorized in your network. Please
contact your network administrator. Application Share Extras"
After closing the window, a popup comes up asking for the verification code
“Verification
Please enter the verification code from Yammer”
I don't know the code. Yammer is not connected.
Maybe this is because we have a verified network for rotterdam.nl. Only people
with a confirmed @rotterdam.nl email can join. What do you think? Should I
contact Yammer?
Original comment by jacobmde...@gmail.com
on 8 Nov 2011 at 8:45
Hi Jacob, it seems a change is needed on the Yammer side to give the app access
to other networks. We are working on this, but in the meantime you could always
register your own application and override the default client key and secret
specified in the META-INF/share-config-custom.xml file in the JAR with the
values from your own app.
Original comment by will.abson
on 12 Nov 2011 at 4:13
Will, thaks for your update. I have no META-INF/share-config-custom.xml file.
The share-config-custom.xml is in
/shared/classes/alfresco/web-extension/share-config-custom.xml. Is that the
correct file?
I need a little help to register yammer and override the default client key and
secret. What's the code to do that?
Original comment by jacobmde...@gmail.com
on 14 Nov 2011 at 12:43
Hi Jacob, the share-config-custom.xml in META-INF should be inside the Yammer
add-on JAR file. That is the file that contains the default connector and
endpoint settings for the add-on, but it may be confusing that it has the same
name as your local overrides file in shared/classes/alfresco/web-extension.
You should be able to override the default settings, if you add the following
snippet to your overrides file.
<config evaluator="string-compare" condition="Remote">
<remote>
<!-- Connector instance -->
<connector>
<id>yammer-oauth</id>
<name>Yammer OAuth Connector</name>
<description>HTTP Connector with support for OAuth authentication</description>
<class>org.sharextras.webscripts.connector.HttpOAuthConnector</class>
<consumer-key>mykey</consumer-key>
<consumer-secret>mysecret</consumer-secret>
<signature-method>PLAINTEXT</signature-method>
</connector>
</remote>
</config>
Original comment by will.abson
on 14 Nov 2011 at 9:40
Documented Yammer issue at
http://code.google.com/p/share-extras/wiki/YammerDashlet#Known_Issues. Please
add a comment there if you continue to have problems after testing. Otherwise
I'll assume that the workaround works.
The main issue relating to the Share OAuth docs has been fixed, so I'm marking
this issue as Fixed.
Original comment by will.abson
on 28 Nov 2011 at 1:42
Original issue reported on code.google.com by
jacobmde...@gmail.com
on 2 Nov 2011 at 1:07