Package: django-netauth
Django netauthis django application that allows authenticate users through OpenID/OAuth/Google/Twitter/Facebook/Vkontakte.
Example project deployed onhttp://netauth.node42.org/Sorry django-netauth not nore supported now. Im recomended use django-socialauth.ContentsRequirementsInstallationSetupUse netauthExtra fieldsFacebookTwitterYandexVkontakteChangesNoteBug trackerContributingContributorsLicenseRequirementspython >= 2.5django >= 1.2python-openidoauth2InstallationDjango netauthshould be installed using pip:pip install django-netauthSetupAdd ‘netauth’ to INSTALLED_APPSINSTALLED_APPS += ( 'netauth', )Add netauth urls to base urlsurl('auth/', include( 'netauth.urls')),Add netauth backend to AUTHENTICATION_BACKENDSAUTHENTICATION_BACKENDS += ( 'netauth.auth.NetBackend', )Syncronize database with django syncdb command./manage.py syncdbSee services setup bellow.Use netauthUse url ‘/auth/login’ as login point in your siteUse template tag ‘netauth_widget’Create custom interfaceExtra fieldsIn order to fill extra fields that may be required by your user profile, you need to setup couple of variables in settings.py of your project.The name of variable should be uppercased name of backend + “_PROFILE_MAPPING”. For example: GOOGLE_PROFILE_MAPPING, TWITTER_PROFILE_MAPPING, etc..The value of this variable must be dictionary with name of the field on the provider side and its value must be name of your form field. For example:TWITTER_PROFILE_MAPPING = { ‘username’: ‘screen_name’, }Here you can see that ‘screen_name’ is what you asking from twitter, in your EXTRA_FORM you will see the value of this under key ‘username’. This is because every authentication method can provide different names for its data and you need to unify it.Also you can override the EXTRA_FORM itself and set NETAUTH_EXTRA_FORM variable with value as path to your custom form. Dont forget to implement save method in this form.FacebookGo tohttp://www.facebook.com/developers/createapp.phpand create applicationSet FACEBOOK_APPLICATION_ID andFACEBOOK_APPLICATION_SECRET(not key) in your settings fileTwitterGo tohttp://twitter.com/apps/newand create application
Application type:BrowserCallback URL:http://your_domain/auth/complete/Set TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET in your settings fileYandexGo tohttp://oauth.yandex.ru/client/newand create application
Callback URL:http://your_domain/auth/ya_proxy/Add YANDEX_APPLICATION_ID in your settings fileVkontakteGo tohttp://vkontakte.ru/apps.php?act=add&site=1and create applicationAdd VKONTAKTE_APPLICATION_ID and VKONTAKTE_APPLICATION_SECRET in your settings fileChangesMake sure you`ve read the following document if you are upgrading from previous versions of scss:http://packages.python.org/django-netauth/changes.htmlNoteYou need to setupmessages-frameworkas described in django documentationBug trackerIf you have any suggestions, bug reports or
annoyances please report them to the issue tracker
athttps://github.com/klen/django-netauth/issuesContributingDevelopment of django-netauth happens at github:https://github.com/klen/django-netauthContributorsklen(Kirill Klenov)ilblackdragon(Ilya)LicenseLicensed under aGNU lesser general public license.