<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/controllers/oauth_clients_controller.rb</filename>
    </added>
    <added>
      <filename>app/controllers/oauth_controller.rb</filename>
    </added>
    <added>
      <filename>app/helpers/oauth_clients_helper.rb</filename>
    </added>
    <added>
      <filename>app/helpers/oauth_helper.rb</filename>
    </added>
    <added>
      <filename>app/models/access_token.rb</filename>
    </added>
    <added>
      <filename>app/models/client_application.rb</filename>
    </added>
    <added>
      <filename>app/models/oauth_nonce.rb</filename>
    </added>
    <added>
      <filename>app/models/oauth_token.rb</filename>
    </added>
    <added>
      <filename>app/models/request_token.rb</filename>
    </added>
    <added>
      <filename>app/views/oauth/authorize.html.erb</filename>
    </added>
    <added>
      <filename>app/views/oauth/authorize_failure.html.erb</filename>
    </added>
    <added>
      <filename>app/views/oauth/authorize_success.html.erb</filename>
    </added>
    <added>
      <filename>app/views/oauth_clients/_form.html.erb</filename>
    </added>
    <added>
      <filename>app/views/oauth_clients/index.html.erb</filename>
    </added>
    <added>
      <filename>app/views/oauth_clients/new.html.erb</filename>
    </added>
    <added>
      <filename>app/views/oauth_clients/show.html.erb</filename>
    </added>
    <added>
      <filename>db/migrate/20090108221828_create_oauth_tables.rb</filename>
    </added>
    <added>
      <filename>spec/controllers/oauth_clients_controller_spec.rb</filename>
    </added>
    <added>
      <filename>spec/controllers/oauth_controller_spec.rb</filename>
    </added>
    <added>
      <filename>spec/controllers/oauth_controller_spec_helper.rb</filename>
    </added>
    <added>
      <filename>spec/fixtures/client_applications.yml</filename>
    </added>
    <added>
      <filename>spec/fixtures/oauth_nonces.yml</filename>
    </added>
    <added>
      <filename>spec/fixtures/oauth_tokens.yml</filename>
    </added>
    <added>
      <filename>spec/models/client_application_spec.rb</filename>
    </added>
    <added>
      <filename>spec/models/oauth_nonce_spec.rb</filename>
    </added>
    <added>
      <filename>spec/models/oauth_token_spec.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/.gitignore</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/CHANGELOG</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/MIT-LICENSE</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/README.rdoc</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/Rakefile</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/USAGE</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/oauth_provider_generator.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/_form.html.erb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/access_token.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/authorize.html.erb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/authorize_failure.html.erb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/authorize_success.html.erb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/client_application.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/client_application_spec.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/client_applications.yml</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/clients_controller.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/clients_controller_spec.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/clients_helper.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/controller.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/controller_spec.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/controller_spec_helper.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/helper.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/index.html.erb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/migration.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/new.html.erb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/oauth_nonce.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/oauth_nonce_spec.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/oauth_nonces.yml</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/oauth_token.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/oauth_token_spec.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/oauth_tokens.yml</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/request_token.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/generators/oauth_provider/templates/show.html.erb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/init.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/install.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/lib/oauth/rails/controller_methods.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/tasks/oauth_tasks.rake</filename>
    </added>
    <added>
      <filename>vendor/plugins/oauth-plugin/uninstall.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -3,7 +3,7 @@ class PeopleController &lt; ApplicationController
   skip_before_filter :require_activation, :only =&gt; :verify_email
   skip_before_filter :admin_warning, :only =&gt; [ :show, :update ]
   before_filter :login_required, :only =&gt; [ :index, :show, :edit, :update ]
-  before_filter :correct_user_required, :only =&gt; [ :edit, :update ]
+  before_filter :correct_person_required, :only =&gt; [ :edit, :update ]
   before_filter :setup
   
   def index
@@ -155,7 +155,7 @@ class PeopleController &lt; ApplicationController
       @body = &quot;person&quot;
     end
   
-    def correct_user_required
+    def correct_person_required
       redirect_to home_url unless Person.find(params[:id]) == current_person
     end
     </diff>
      <filename>app/controllers/people_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,6 @@
 class ReqsController &lt; ApplicationController
-  before_filter :login_required
+  before_filter :login_required, :except =&gt; [:show, :index]
+  before_filter :login_or_oauth_required, :only =&gt; [:show, :index]
   before_filter :correct_person_and_no_accept_required, :only =&gt; [ :edit, :update ]
   before_filter :correct_person_and_no_commitment_required, :only =&gt; [ :destroy ]
   # GET /reqs</diff>
      <filename>app/controllers/reqs_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -97,6 +97,8 @@ class Person &lt; ActiveRecord::Base
   has_many :accounts
   has_many :exchanges, :foreign_key =&gt; :worker_id, :order =&gt; &quot;created_at DESC&quot;
   has_many :addresses
+  has_many :client_applications
+  has_many :tokens, :class_name =&gt; &quot;OauthToken&quot;, :order =&gt; &quot;authorized_at DESC&quot;, :include =&gt; [:client_application]
 
   has_and_belongs_to_many :categories
 </diff>
      <filename>app/models/person.rb</filename>
    </modified>
    <modified>
      <diff>@@ -72,6 +72,12 @@ ActionController::Routing::Routes.draw do |map|
 
   map.admin_home '/admin/home', :controller =&gt; 'home'
 
+  map.resources :oauth_clients
+  map.authorize '/oauth/authorize', :controller =&gt; 'oauth', :action =&gt; 'authorize'
+  map.request_token '/oauth/request_token', :controller =&gt; 'oauth', :action =&gt; 'request_token'
+  map.access_token '/oauth/access_token', :controller =&gt; 'oauth', :action =&gt; 'access_token'
+  map.test_request '/oauth/test_request', :controller =&gt; 'oauth', :action =&gt; 'test_request'
+
   # The priority is based upon order of creation: first created -&gt; highest priority.
 
   # Sample of regular route:</diff>
      <filename>config/routes.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1701e596958d01ffb5874de4ff7018671efa2b97</id>
    </parent>
  </parents>
  <author>
    <name>Tom Brown</name>
    <email>herestomwiththeweather@gmail.com</email>
  </author>
  <url>http://github.com/binaryseed/oscurrency/commit/1a823083d9b7803dbe20cf718d719a1a1d1ee9f9</url>
  <id>1a823083d9b7803dbe20cf718d719a1a1d1ee9f9</id>
  <committed-date>2009-01-09T02:49:00-08:00</committed-date>
  <authored-date>2009-01-09T02:49:00-08:00</authored-date>
  <message>oauth plugin, oauth views styled, reqs controller accessible through oauth</message>
  <tree>46b556281aea753f975df5f9ec4745c3cb4edb94</tree>
  <committer>
    <name>Tom Brown</name>
    <email>herestomwiththeweather@gmail.com</email>
  </committer>
</commit>
