eXo Platform 4.0 Documentation > Reference Guide / Platform > Configurations > External component plugins > Social plugins

2.2.1.13. OpenSocial 2-legged OAuth

This section is about configuring the 2-legged OAuth scenario in OpenSocial. (Reference: OpenSocial.org)

For more information, visit 2-legged OAuth for the OpenSocial REST API.

Generate the key

$ openssl req -newkey rsa:1024 -days 365 -nodes -x509 -keyout testkey.pem \
     -out testkey.pem -subj '/CN=mytestkey'
$ openssl pkcs8 -in testkey.pem -out oauthkey.pem -topk8 -nocrypt -outform PEM

Configure the property file

Edit container.js and change the following parameter to point to your private key and key name.

"gadgets.signingKeyFile" : "oauth.pem",
"gadgets.signingKeyName" : "oauthKey",
Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus