You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rave.apache.org by bu...@apache.org on 2011/08/24 16:26:52 UTC

svn commit: r794799 - /websites/staging/rave/trunk/content/rave/documentation/oauth-consumer.html

Author: buildbot
Date: Wed Aug 24 14:26:51 2011
New Revision: 794799

Log:
Staging update by buildbot

Modified:
    websites/staging/rave/trunk/content/rave/documentation/oauth-consumer.html

Modified: websites/staging/rave/trunk/content/rave/documentation/oauth-consumer.html
==============================================================================
--- websites/staging/rave/trunk/content/rave/documentation/oauth-consumer.html (original)
+++ websites/staging/rave/trunk/content/rave/documentation/oauth-consumer.html Wed Aug 24 14:26:51 2011
@@ -70,13 +70,13 @@
     <h1 class="title">Use Rave as OAuth consumer</h1>
     <p>After following the instuctions, you will be able to use Rave as an OAuth consumer. You will add an OpenSocial Gadget
 that displays your Google Contacts, using Google as OAuth provider.</p>
-<h1 id="place_the_gadget_definition_on_your_server">Place the gadget definition on your server</h1>
+<h2 id="place_the_gadget_definition_on_your_server">Place the gadget definition on your server</h2>
 <p>Place the <a href="http://gadget-doc-examples.googlecode.com/svn/trunk/opensocial-gadgets/oauth-contacts.xml">example OAuth Gadget</a>
 on your <em>own</em> public server. Make sure that the gadget is accessible without any restrictions.</p>
-<h1 id="register_your_web_application">Register your web application</h1>
+<h2 id="register_your_web_application">Register your web application</h2>
 <p>Follow <a href="http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html">Google's instructions</a> to register
 your domain for OAuth Authentication. You will create an OAuth consumer key and secret.</p>
-<h1 id="add_the_oauth_consumer_key_and_secret_to_the_rave_database">Add the OAuth consumer key and secret to the Rave database</h1>
+<h2 id="add_the_oauth_consumer_key_and_secret_to_the_rave_database">Add the OAuth consumer key and secret to the Rave database</h2>
 <p>Until there is a web interface to handle the contents of the database, execute the following query (use your own values)</p>
 <div class="codehilite"><pre><span class="n">INSERT</span> <span class="n">INTO</span> <span class="n">oauth_consumer_store</span><span class="p">(</span><span class="n">id</span><span class="p">,</span> <span class="n">gadget_uri</span><span class="p">,</span> <span class="n">service_name</span><span class="p">,</span> <span class="n">consumer_key</span><span class="p">,</span> <span class="n">consumer_secret</span><span class="p">,</span> <span class="n">key_type</span><span class="p">)</span>
 <span class="n">VALUES</span> <span class="p">(</span><span class="n">set</span><span class="p">(</span><span class="nv">@consumer_store_id_oauth</span><span class="p">,</span> <span class="k">next</span> <span class="n">value</span> <span class="k">for</span> <span class="n">consumer_store_id_seq</span><span class="p">),</span>
@@ -85,7 +85,7 @@ your domain for OAuth Authentication. Yo
 </pre></div>
 
 
-<h1 id="add_your_widget_to_the_rave_database">Add your Widget to the Rave database</h1>
+<h2 id="add_your_widget_to_the_rave_database">Add your Widget to the Rave database</h2>
 <p>Within the Widget Store it is possible to add your own Widget. Self added widgets must be published first.</p>
 <div class="codehilite"><pre><span class="n">INSERT</span> <span class="n">INTO</span> <span class="n">widget</span> <span class="p">(</span><span class="n">id</span><span class="p">,</span> <span class="n">title</span><span class="p">,</span> <span class="n">url</span><span class="p">,</span> <span class="n">type</span><span class="p">,</span> <span class="n">widget_status</span><span class="p">)</span>
 <span class="n">VALUES</span><span class="p">(</span><span class="n">set</span><span class="p">(</span><span class="nv">@widget_id_oauth</span><span class="p">,</span> <span class="k">next</span> <span class="n">value</span> <span class="k">for</span> <span class="n">widget_id_seq</span><span class="p">),</span> <span class="s">&#39;Google Contacts&#39;</span><span class="p">,</span>
@@ -93,13 +93,15 @@ your domain for OAuth Authentication. Yo
 </pre></div>
 
 
-<h1 id="use_the_widget">Use the Widget</h1>
+<h2 id="use_the_widget">Use the Widget</h2>
 <ul>
 <li>Go to the Widget Store and add the "Google Contacts" gadget.</li>
-<li>Then go back to your page.</li>
+<li>Then go back to your page.<ul>
 <li>Click on the link "Personalize this gadget"</li>
 <li>If you are not logged in yet, log in with your Google account</li>
 <li>Click on the "Grant access" button</li>
+</ul>
+</li>
 <li>You are being redirected back to the portal. You should now see your Google contacts</li>
 </ul>
 <p><img alt="Screenshot of Sample OAuth Gadget" src="/rave/images/screenshot_oauth_gadget.png" /></p>