OAuth from KEYROCK / KEYSTONE ##################################### Important: The implementation of keyrock into FI-WARE is going to change from Ruby to Python. Old version won't be supported any more. End of march 2015 shell come the new release. Functionality is the same - hopefully no changes have to be made in your Application. ##################################### example with NODEJS Open Programme/Putty/putty.exe Load SESSION Connect to server login: root you are located: SERVER ROOT/root cd / you are located: SERVER ROOT sudo apt-get install nodejs sudo apt-get install npm Login at account.fi-ware.org Register your applications or Generate a Organisation and set up some roles with rules (provider, owner what ever) Doubleclick on your registed application. NAVIGATION RIGHT BOTTOM => OAuth2 Credentials -> copy the ClientID and the Client Secret https://account.lab.fiware.org/applications/ download oauth2-example-client-master from github https://github.com/ging/oauth2-example-client open config.js Configure OAuth2 credentials (ClientID and Client Secret) in config.js file. You will find them in your IDM https://account.lab.fiware.org/applications/ set URL to server root or URI of the oauth2-example folder and CALLBACK URL to /login or oauth2-example folder/login For static page open server.js line 59 res.redirect('/bindex.php'); set the file name to the file where to redirect to. Not possible is it to use 'index.*' Save and Upload all files of the example to the server If Apache is running, stop Apache /etc/init.d/apache2 stop /etc/init.d/apache2 start To start NODEJS server sudo nodejs server.js To stop the NODEJS server CTRL+C Save and upload to the server Load the URL of your Application in the Browser REF.:http://de.slideshare.net/jcague/fiware-account-and-oauth-solution FI-WARE Workshop2 on https://www.dropbox.com/ To set up OAuth with Apache and PHP/RUBY/PYTHON refer to Oauth pages and second example.