Commits

offline committed adf87a3

  • Participants
  • Parent commits f1879ea

Comments (0)

Files changed (1)

 == Requirements ==
-* python >= 2.5
-* django >= 1.1
+* python >= 2.5 
+* django >= 1.2 (r11807)
 * [[http://bitbucket.org/offline/django-annoying/wiki/Home|django-annoying]]
-* [[http://bitbucket.org/offline/django-flashcookie/|django-flashcookie]]
 
 
 == Installation ==
 * Download and run python setup install or put openauth directory on PYTHONPATH
-* Add 'openauth' to your INSTALLED_APPS tuple
+* Add 'publicauth' to your INSTALLED_APPS tuple
 * Add 'annoying.middlewares.RedirectMiddleware' to your MIDDLEWARE_CLASSES
-* Add  'flashcookie.FlashMiddleware' to your MIDDLEWARE_CLASSES
-* Add 'flashcookie.flash_context' to your TEMPLATE_CONTEXT_PROCESSORS
-* Add url(r'^auth/', include('openauth.urls')) to your base urls.py
+* Add url(r'^auth/', include('publicauth.urls')) to your base urls.py
  
 === Facebook/OpenID/OAuth ===
-* Add 'openauth.SocialBackend' to your AUTHENTICATION_BACKENDS
+* Add 'publicauth.PublicBackend' to your AUTHENTICATION_BACKENDS
 * run python manage.py syncdb
 
 === Facebook ===
 * Add 'facebook.djangofb.FacebookMiddleware' to your MIDDLEWARE_CLASSES
 * Go to http://www.facebook.com/developers/ and create application
 * Set FACEBOOK_API_KEY and FACEBOOK_SECRET_KEY in your settings.py file.
-* Add next code to your login page template
+* Add next code to your login page template (can be "templates/publicauth/login.html" if you want to use built in login view.
 
 {{{
 #!html
 
     function fb_login() {
         FB.Connect.requireSession(function(test) {
-            window.location = "{% url openauth-social-complete 'facebook' %}";
+            window.location = "{% url openauth-social-complete 'facebook' %}?next={{ request.GET.next }}";
         });
         return false;
     }
 
 === Defaults ===
 By default every authentication method is allowed. To configure specific backends, please set 
-BACKEND_MAPPING in your settings.py file. To see example, go to [[http://bitbucket.org/offline/django-openauth2/src/tip/openauth/settings.py#cl-163|openauth.settings.py]] file
+PUBLICAUTH_BACKEND_MAPPING in your settings.py file. To see example, go to [[http://bitbucket.org/offline/django-publicauth/src/tip/publicauth/settings.py#cl-163|publicauth.settings.py]] file