Projects tagged ‘django’ and ‘openid’


Jump to tag:

Projects tagged ‘django’ and ‘openid’

Filtered by Project Tags django openid

Refine results Project Tags python (10) authentication (3) auth (2) atom (1) groups (1) blog (1) gdata (1) tag (1) selector (1) djangoapp (1) gae (1) app (1)

[14 total ]

1 Users

django-authopenid has moved from Google Code to Bitbucket; please head on over to the django-authopenid Bitbucket page for current code, documentation and bugs.
Created about 1 year ago.

1 Users

Simple OpenID support for Django Framework.
Created 5 months ago.

1 Users

Views and middleware for enabling your Django application to act as an OpenID consumer. Blog announcement is here: http://simonwillison.net/2007/Apr/24/openidconsumer/
Created about 1 year ago.

0 Users

This app provides a Django model for associating multiple identities with a django.contrib.auth.models.User.
Created 11 months ago.

0 Users

This is basicly a fork of django-openid, with this short list of changes: python-openid 2.x.x support SimpleRegistration (redone), Pape and AttributeExchange extenstion support bug fixes from ... [More] django-openid Issue tracker (special thanks to reporters and patchers. ) Clearer settings and improved docs (my personal opinion, I could be wrong ) Plugable application structure ( thanks to ubernostrum for the slides&advices ) django-openid-consumer aims to do only one thing, simple OpenID auth( with all the extension s python-openid supports ) for comments on blogs and similar. It doesen't aim to provide any further integration ( like for example tighter integration with auth ) with Django. [Less]
Created 12 months ago.

0 Users

The python-openid-graph application can be used to store and return information about relationships between OpenId identity URLs.
Created about 1 year ago.

0 Users

In early stage of development.
Created 11 months ago.

0 Users

What is thisThis is assembly of Django-SocialAuth and openid-realselector. Application allow you to logging in via various openid providers or via e-mail (SimpleMailAuth) if you have no provider. ... [More] Libs you need to installpython-openid (easy_install) python-yadis (easy_install) python-oauth (easy_install) simplejson (easy_install) The API Keys are available fromhttps://developer.yahoo.com/dashboard/createKey.html https://www.google.com/accounts/ManageDomains http://twitter.com/oauth_clients How to useInstall required libraries Get tokens and populate in localsettings.py Set the token callback urls correctly at Twitter and Facebook Add the OpenId middleware. Set the Authentication backends. (Set in localsettings.example.py) Copy content of /media/ directory to your MEDIA_ROOT To DoCreate new Yandex (large), Rambler (small), SMAuth (large), Yahoo (small) icons Assemble all icons in one .png file More InfoThis code have been assembled by russian developers, that's why mostly ru services enabled by default . If you want to allow more services, you can edit /media/js/jquery.openid.js . [Less]
Created about 1 month ago.

0 Users

OverviewThis is a simple Django pluggable for OpenID authentication. You can just login or logout, simple as that. This pluggable asumes you don't has a user database (the purpose of OpenID) and ... [More] your application use exclusively openid accounts. Obviously you can store user url in some table. If you are looking for a more complex pluggable that has another features, like registration or association, try this: http://bitbucket.org/benoitc/django-authopenid/ Google App EngineThis pluggable don't use database, so it is compatible with plain Django or Google App Engine, since GAE fixed a bug with OpenID redirects. Change logDo not use 0.1 version! 0.1 -> 0.2: New features: decorator: @openid_login_required debug mode: if settings.DEBUG = True, it uses http://debug.devenvironment.localhost as unique user. Bug fixes PluggingMediaCopy static directory content (css and images folders) to your MEDIA_ROOT directory. settings.pyMIDDLEWARE_CLASSES = ( ... 'django.contrib.sessions.middleware.SessionMiddleware', ... ) TEMPLATE_CONTEXT_PROCESSORS = ( 'django.core.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.request', ... 'djangoopenid.context_processors.openid', ... ) INSTALLED_APPS = ( ... 'django.contrib.sessions', 'djangoopenid', ... ) import os ROOT_PATH = os.path.dirname(__file__) MEDIA_URL = '/static/' MEDIA_ROOT = ROOT_PATH + MEDIA_URL # Sample: LOGIN_REDIRECT_URL = '/' LOGIN_URL = '/openid/pleaselogin/' # redirect to a default page for login (template included) LOGOUT_URL = '/' # Important: Use LOGIN_REDIRECT_URL to a specific view if you want to do some pos-login action, and in that # view you can effectively redirect to some url, example: # urls.py: url('^load_user' ...) # views.py: # user, created = SomeObjectThatStoreOpenID.objects.get_or_create(openid=request.session['openiduser']) # request.session['user'] = user # return HttpResponseRedirect(reverse('PRATICALY A LOGIN_REDIRECT URL HERE')) LOGIN_REDIRECT_URL = '/load_user' # http://docs.djangoproject.com/en/dev/topics/http/sessions/?from=olddocs#configuring-the-session-engine # Don't use django.contrib.sessions.backends.cached_db if you are using Google App Engine, # because it is incompatible. SESSION_ENGINE = 'django.contrib.sessions.backends.cache'urls.pyurlpatterns = patterns('', ... url(r'^openid/', include('djangoopenid.urls')), # url('^load_user' ...) ... # use lighthttp in production url(r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT }), )In this case, the important urls are: openid/login and openid/logout # By default djangoopenid don't store sessions (stateless), if you want to use memory to store them, # set the follow variable. # Each 1000 sessions, the memory will be clean # If you prefer, put here a huge number and use cron job OPENID_SESSIONS_TO_CLEAN = 1000 Development EnvironmentIf settings.py has DEBUG = True, djangoopenid will not authenticate and always is return sucess for the user http://debug.devenvironment.localhost If you want to test djangoopenid, set DEBUG = False TemplatesYou can use: {% include "djangoopenid/openid.html" %} in some template (even base.html template) Don't forget to add css: djangoopenid/openid_help.html extends two blocks of base.html: header and content. This template shows some information to help new users of OpenID. base.html or other template: You can use jquery and jquery tooltip plugin to show help for OpenID: $(document).ready(function() { $('.help').tooltip({ track: true, delay: 0, showURL: false, showBody: " - ", fade: 250, positionLeft: true }) }) You can use also: {{ openiduser }} {% if isAuthenticated %} ... {% else %} ... {% endif %} SessionOne variable added in session map: openiduser ViewsThis pluggable add two variables in RequestContext: isAuthenticated and openiduser To use this you need to choose RequestContext, so you pass it in render_to_response: kwargs['context_instance'] = RequestContext(request) return render_to_response(*args, **kwargs)or, use the new function: from djangoopenid.utils import render_response return render_response(request, template, map)You can use decorators: from djangoopenid.decorators import openid_login_required @openid_login_required def my_view(request): passRedirect to settings.LOGIN_URL if openiduser is not in session If you are using LOGIN_REDIRECT_URL: user, created = SomeObjectThatStoreOpenID.objects.get_or_create(openid=request.session['openiduser']) request.session['user'] = user return HttpResponseRedirect(reverse('PRATICALY A LOGIN_REDIRECT URL HERE'))ModelsIf you want to store openid information in some models, you can use some property like this: openid = models.CharField(unique=True, blank=False, max_length=255, help_text='Max Length: 255')or openid = models.URLField(unique=True, blank=False, verify_exists=False, max_length=255)If you are using Google App Engine: openid = db.StringProperty(required=True, verbose_name='OpenID', multiline=False)or openid = db.LinkProperty(required=True)You can use LOGIN_REDIRECT_URL to create some data with OpenID when a user login [Less]
Created 7 months ago.

0 Users

A very simple django pluggable application that let your users login using their openid url. Application targets: 1) easy to install 2) easy to modify 3) easy to run 4) KISS model
Created 4 months ago.