Skip to content

A middleware and a backend to shortcut django authentication

Notifications You must be signed in to change notification settings

mozilla-services/django-fakeauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Django FakeAuth

This is a fake authentication backend for django, you can use it like that (in your settings):

FAKEAUTH_TOKEN = 'superkey'

AUTHENTICATION_BACKENDS = ('django_fakeauth.FakeAuthBackend',) + AUTHENTICATION_BACKENDS
MIDDLEWARE_CLASSES.append('access.middleware.ACLMiddleware')

FAKEAUTH_TOKEN = os.environ.get('FAKEAUTH_TOKEN')

When doing local development, you can also ask the system to use a specific user, like this:

FAKEAUTH_BYPASS = 'username'

About

A middleware and a backend to shortcut django authentication

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages