<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/controllers/admin/authentication_providers_controller.rb</filename>
    </added>
    <added>
      <filename>app/helpers/authentication_providers_helper.rb</filename>
    </added>
    <added>
      <filename>app/models/authentication/authentication_provider.rb</filename>
    </added>
    <added>
      <filename>app/models/authentication/clickpass_provider.rb</filename>
    </added>
    <added>
      <filename>app/models/authentication/known_provider.rb</filename>
    </added>
    <added>
      <filename>app/models/authentication/one_click_provider.rb</filename>
    </added>
    <added>
      <filename>app/models/authentication/open_id_provider.rb</filename>
    </added>
    <added>
      <filename>app/models/authentication/password_provider.rb</filename>
    </added>
    <added>
      <filename>app/models/authentication/windows_live_id_provider.rb</filename>
    </added>
    <added>
      <filename>app/views/admin/authentication_providers/edit.html.erb</filename>
    </added>
    <added>
      <filename>app/views/admin/authentication_providers/index.html.erb</filename>
    </added>
    <added>
      <filename>app/views/admin/authentication_providers/new.html.erb</filename>
    </added>
    <added>
      <filename>app/views/admin/authentication_providers/show.html.erb</filename>
    </added>
    <added>
      <filename>db/migrate/20081110184646_create_admin_authentication_providers.rb</filename>
    </added>
    <added>
      <filename>spec/controllers/admin/authentication_providers_controller_spec.rb</filename>
    </added>
    <added>
      <filename>spec/controllers/admin/authentication_providers_routing_spec.rb</filename>
    </added>
    <added>
      <filename>spec/fixtures/admin/admin_authentication_providers.yml</filename>
    </added>
    <added>
      <filename>spec/helpers/authentication_providers_helper_spec.rb</filename>
    </added>
    <added>
      <filename>spec/models/admin/authentication_provider_spec.rb</filename>
    </added>
    <added>
      <filename>spec/spec_helpers/authentication_provider_spec_helper.rb</filename>
    </added>
    <added>
      <filename>spec/views/admin/authentication_providers/edit.html.erb_spec.rb</filename>
    </added>
    <added>
      <filename>spec/views/admin/authentication_providers/index.html.erb_spec.rb</filename>
    </added>
    <added>
      <filename>spec/views/admin/authentication_providers/new.html.erb_spec.rb</filename>
    </added>
    <added>
      <filename>spec/views/admin/authentication_providers/show.html.erb_spec.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -3,4 +3,5 @@ log/*.log
 tmp/**/*
 .DS_Store
 doc/api
-doc/app
\ No newline at end of file
+doc/app
+db/user_schema.txt</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -13,7 +13,7 @@ class UserSessionsController &lt; ApplicationController
     @user_session = UserSession.new(params[:user_session])
     if @user_session.save
       flash[:notice] = &quot;Login successful!&quot;
-      redirect_back_or_default user_url
+      redirect_back_or_default root_url
     else
       render :action =&gt; :new
     end
@@ -21,8 +21,8 @@ class UserSessionsController &lt; ApplicationController
 
   def destroy
     @user_session.destroy
-    flash[:notice] = &quot;Logout successful!&quot;
-    redirect_back_or_default new_user_session_url
+    flash[:notice] = 'Logout successful!'
+    redirect_back_or_default login_url
   end
   
 end</diff>
      <filename>app/controllers/user_sessions_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,5 @@
 class User &lt; ActiveRecord::Base
+  
   acts_as_authentic  
+  
 end</diff>
      <filename>app/models/user.rb</filename>
    </modified>
    <modified>
      <diff>@@ -16,6 +16,10 @@ require 'yaml' # script/generate executes environment.rb but hasn't required yam
 APP_CONFIG = YAML.load(config_file)[RAILS_ENV]
 
 Rails::Initializer.run do |config|
+  
+  # Modify load_paths to find models in subdirectories
+  Dir.glob(&quot;#{RAILS_ROOT}/app/models/*[^.rb]&quot;).each{|dir| config.load_paths &lt;&lt; dir }
+  
   # Settings in config/environments/* take precedence over those specified here.
   # Application configuration should go into files in config/initializers
   # -- all .rb files in that directory are automatically loaded.</diff>
      <filename>config/environment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 ActionController::Routing::Routes.draw do |map|
-  
+
   map.logout '/logout', :controller =&gt; 'user_sessions', :action =&gt; 'destroy'
   map.login '/login', :controller =&gt; 'user_sessions', :action =&gt; 'new'
 	map.signup '/signup', :controller =&gt; 'users', :action =&gt; 'new'
@@ -7,6 +7,13 @@ ActionController::Routing::Routes.draw do |map|
   map.resources :users
   map.resource :user_session
   
+	# ==================
+	# = Administration =
+	# ==================
+  map.namespace :admin do |admin|      
+		admin.resources :authentication_providers
+  end
+  
 	map.root :controller =&gt; 'pages'
 
 end</diff>
      <filename>config/routes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,20 @@
 #
 # It's strongly recommended to check this file into your version control system.
 
-ActiveRecord::Schema.define(:version =&gt; 20081106212028) do
+ActiveRecord::Schema.define(:version =&gt; 20081110184646) do
+
+  create_table &quot;authentication_providers&quot;, :force =&gt; true do |t|
+    t.string   &quot;name&quot;,             :default =&gt; &quot;&quot;,                       :null =&gt; false
+    t.string   &quot;type&quot;,             :default =&gt; &quot;AuthenticationProvider&quot;, :null =&gt; false
+    t.string   &quot;label&quot;
+    t.string   &quot;logo&quot;
+    t.string   &quot;button&quot;
+    t.text     &quot;description&quot;
+    t.boolean  &quot;active&quot;,           :default =&gt; true,                     :null =&gt; false
+    t.integer  &quot;display_sequence&quot;
+    t.datetime &quot;created_at&quot;
+    t.datetime &quot;updated_at&quot;
+  end
 
   create_table &quot;users&quot;, :force =&gt; true do |t|
     t.string   &quot;screen_name&quot;,            :limit =&gt; 50</diff>
      <filename>db/schema.rb</filename>
    </modified>
    <modified>
      <diff>@@ -19,7 +19,7 @@ authentication_providers_010:
   logo: &quot;&quot;
   id: &quot;28&quot;
   description: &quot;&quot;
-  type: windowsliveid
+  type: WindowsLiveIdProvider
   label: Windows Live Id
   created_at: 2008-03-31 16:03:29
   active: &quot;1&quot;
@@ -31,7 +31,7 @@ authentication_providers_001:
   logo: openid.jpg
   id: &quot;19&quot;
   description: E.g. http://claimid.com/[OpenID Name]
-  type: OpenId
+  type: OpenIdProvider
   label: OpenID URL
   created_at: 2008-03-31 16:03:28
   active: &quot;1&quot;
@@ -43,7 +43,7 @@ authentication_providers_002:
   logo: magnolia.jpg
   id: &quot;20&quot;
   description: &quot;&quot;
-  type: Password
+  type: PasswordProvider
   label: Ma.gnolia Sign-in
   created_at: 2008-03-31 16:03:28
   active: &quot;1&quot;
@@ -55,7 +55,7 @@ authentication_providers_003:
   logo: yahoo.jpg
   id: &quot;21&quot;
   description: Click below to sign in with your Yahoo account.
-  type: OneClick
+  type: OneClickProvider
   label: Yahoo
   created_at: 2008-03-31 16:03:29
   active: &quot;1&quot;
@@ -67,7 +67,7 @@ authentication_providers_004:
   logo: facebook.jpg
   id: &quot;22&quot;
   description: Click below to sign in with your Facebook account. Facebook will authenticate you for Ma.gnolia without revealing your password.
-  type: OneClick
+  type: OneClickProvider
   label: &quot;&quot;
   created_at: 2008-03-31 16:03:29
   active: &quot;1&quot;
@@ -79,7 +79,7 @@ authentication_providers_005:
   logo: clickpass.jpg
   id: &quot;23&quot;
   description: Click below to sign in with Clickpass.
-  type: Clickpass
+  type: ClickpassProvider
   label: &quot;&quot;
   created_at: 2008-03-31 16:03:29
   active: &quot;1&quot;
@@ -91,7 +91,7 @@ authentication_providers_006:
   logo: wordpress.jpg
   id: &quot;24&quot;
   description: E.g. http://[your blog].wordpress.com
-  type: OpenId
+  type: OpenIdProvider
   label: WordPress Blog URL
   created_at: 2008-03-31 16:03:29
   active: &quot;1&quot;</diff>
      <filename>db/system_data/authentication_providers.yml</filename>
    </modified>
    <modified>
      <diff>@@ -50,7 +50,7 @@ describe UserSessionsController do
         it &quot;should re-render the 'new' template&quot; do
           UserSession.should_receive(:find).and_return(nil)
           mock_user_session.should_receive(:save).and_return(false)
-          UserSession.should_receive(:new).with({'these' =&gt; 'params'}).and_return(mock_user_session)
+          UserSession.stub!(:new).and_return(mock_user_session(:save =&gt; false))
           post :create, :user_session =&gt; {}
           response.should render_template('new')
         end</diff>
      <filename>spec/controllers/user_sessions_controller_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>log/development.log</filename>
    </removed>
    <removed>
      <filename>log/test.log</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>d391e3171c3f771f25a1d3fb9c226ac78979cd09</id>
    </parent>
  </parents>
  <author>
    <name>Jesse Clark</name>
    <email>jesse@jesseclark.com</email>
  </author>
  <url>http://github.com/magnolia/magnolia/commit/491b0b6d3f86d3730f3a783eab84024df0d43c15</url>
  <id>491b0b6d3f86d3730f3a783eab84024df0d43c15</id>
  <committed-date>2008-11-10T17:20:13-08:00</committed-date>
  <authored-date>2008-11-10T17:20:13-08:00</authored-date>
  <message>Added AuthenticationProviders. Scaffolded for admin section.</message>
  <tree>7853fa232359b918e3077730c8c87d6f6091242c</tree>
  <committer>
    <name>Jesse Clark</name>
    <email>jesse@jesseclark.com</email>
  </committer>
</commit>
