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:22:54 UTC

svn commit: r794796 - in /websites/staging/rave/trunk/content/rave: documentation/index.html documentation/oauth-consumer.html images/screenshot_oauth_gadget.png

Author: buildbot
Date: Wed Aug 24 14:22:53 2011
New Revision: 794796

Log:
Staging update by buildbot

Added:
    websites/staging/rave/trunk/content/rave/documentation/oauth-consumer.html
    websites/staging/rave/trunk/content/rave/images/screenshot_oauth_gadget.png   (with props)
Modified:
    websites/staging/rave/trunk/content/rave/documentation/index.html

Modified: websites/staging/rave/trunk/content/rave/documentation/index.html
==============================================================================
--- websites/staging/rave/trunk/content/rave/documentation/index.html (original)
+++ websites/staging/rave/trunk/content/rave/documentation/index.html Wed Aug 24 14:22:53 2011
@@ -75,6 +75,10 @@
 </ul>
 </li>
 </ul>
+<h2 id="howto">Howto</h2>
+<ul>
+<li><a href="oauth-consumer.html">Use Rave as OAuth consumer</a></li>
+</ul>
   </div>
 
   <div id="footer">

Added: websites/staging/rave/trunk/content/rave/documentation/oauth-consumer.html
==============================================================================
--- websites/staging/rave/trunk/content/rave/documentation/oauth-consumer.html (added)
+++ websites/staging/rave/trunk/content/rave/documentation/oauth-consumer.html Wed Aug 24 14:22:53 2011
@@ -0,0 +1,120 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE- 2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+  <link rel="shortcut icon" href="/rave/images/RAVE-icon.ico" type="image/x-icon" />
+  <link href="/rave/css/rave.css" rel="stylesheet" type="text/css">
+  <title>Use Rave as OAuth consumer</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+</head>
+
+<body>
+  <div id="banner">
+    <img id="logo" alt="Apache Rave (Incubating)" src="/rave/images/RAVE-logo_main-logo-small.png"/>
+  </div>
+  
+  <div id="navigation">
+  <h1 id="general">General</h1>
+<ul>
+<li><a href="/rave/index.html">About</a></li>
+<li><a href="/rave/documentation/index.html">Documentation</a></li>
+<li><a href="/rave/downloads.html">Downloads</a></li>
+<li><a href="http://incubator.apache.org/projects/rave.html">Incubator page</a></li>
+<li><a href="/rave/license.html">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/rave/get-involved.html">Get Involved</a></li>
+<li><a href="/rave/mailing-lists.html">Mailing Lists</a></li>
+<li><a href="/rave/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/rave/source.html">Getting Started</a></li>
+<li><a href="/rave/ide-settings-and-debugging.html">IDE Settings and debugging</a></li>
+<li><a href="/rave/release-management.html">Release Management</a></li>
+<li><a href="https://issues.apache.org/jira/browse/rave">Issue Tracker</a></li>
+<li><a href="https://builds.apache.org/hudson/view/M-R/view/Rave/">Continuous Integration</a></li>
+<li><a href="https://analysis.apache.org/dashboard/index/58996">Sonar Dashboard</a></li>
+<li><a href="/rave/edit-website.html">Website</a></li>
+</ul>
+<h1 id="asf">ASF</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+</ul>
+    <a alt="Apache Incubator" href="http://incubator.apache.org">
+      <img id="asf-logo" alt="Apache Incubator" src="/rave/images/apache-incubator-logo.png"/>
+    </a>
+  </div>
+
+  <div id="content">
+    <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>
+<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>
+<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>
+<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>
+                                <span class="s">&#39;http://example.com/sampleoauth.xml&#39;</span><span class="p">,</span> <span class="s">&#39;google&#39;</span><span class="p">,</span>
+                                <span class="s">&#39;gadgetConsumer&#39;</span><span class="p">,</span> <span class="s">&#39;gadgetSecret&#39;</span><span class="p">,</span> <span class="s">&#39;HMAC-SYMMETRIC&#39;</span><span class="p">);</span>
+</pre></div>
+
+
+<h1 id="add_your_widget_to_the_rave_database">Add your Widget to the Rave database</h1>
+<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>
+        <span class="s">&#39;http://example.com/sampleoauth.xml&#39;</span><span class="p">,</span> <span class="s">&#39;OpenSocial&#39;</span><span class="p">,</span> <span class="s">&#39;PUBLISHED&#39;</span><span class="p">);</span>
+</pre></div>
+
+
+<h1 id="use_the_widget">Use the Widget</h1>
+<ul>
+<li>Go to the Widget Store and add the "Google Contacts" gadget.</li>
+<li>Then go back to your page.</li>
+<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>
+<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>
+  </div>
+
+  <div id="footer">
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache and the Apache feather logos are trademarks of The Apache Software Foundation.
+      </p>
+    </div>
+  </div>
+
+</body>
+</html>

Added: websites/staging/rave/trunk/content/rave/images/screenshot_oauth_gadget.png
==============================================================================
Binary file - no diff available.

Propchange: websites/staging/rave/trunk/content/rave/images/screenshot_oauth_gadget.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream