Skip to main content

django-all-access is a reusable application for user registration and authentication from OAuth 1.0 and OAuth 2.0 providers such as Twitter and Facebook.

Project description

Build Coverage PyPI Download PyPI Python Versions PyPI License

django-all-access is a reusable application for user registration and authentication from OAuth 1.0 and OAuth 2.0 providers such as Twitter and Facebook.

The goal of this project is to make it easy to create your own workflows for authenticating with these remote APIs. django-all-access will provide the simple views with sane defaults along with hooks to override the default behavior.

This is a fork to provide updates for compatibility and a package on PyPI only.

django-all-access was originally authored by Mark Lavin.

Features

  • Sane and secure defaults for OAuth authentication

  • Easy customization through class-based views

  • Built using the amazing requests library

Installation

It is easiest to install this fork of django-all-access using pip:

pip install fdemmer-django-all-access

django-all-access requires Python & Django along with the following Python packages (which are automatically installed if necessary):

pycryptodome>=3.9
requests>=2.0
requests_oauthlib>=0.4.2
oauthlib>=0.6.2

Configuration

ALL_ACCESS_SECRET_KEY

By default SECRET_KEY is used by EncryptedField to encrypt Provider.consumer_key, Provider.consumer_secret and AccountAccess.access_token. Alternatively you can explicitly configure an encryption key using ALL_ACCESS_SECRET_KEY.

Tip: To generate secrets use get_random_secret_key() from django.core.management.utils.

ALL_ACCESS_DISABLED

To avoid passing around secret keys and still being able to work with encrypted data, you can disable decryption of EncryptedField values by setting ALL_ACCESS_DISABLED to True.

With this setting enabled, EncryptedField return the encrypted value instead. Modifying the encrypted value will almost certainly break decrypting it later.

Be aware, that this is a workaround for development environments only and will break all functionality of django-all-access aside from reading the Provider and AccountAccess models.

Documentation

Additional documentation on using django-all-access is available on Read The Docs.

Releases

Changelog.

License

django-all-access is released under the BSD License. See the LICENSE file for more details.

Contributing

If you have questions about using django-all-access or want to follow updates about the project you can join the mailing list through Google Groups.

If you think you’ve found a bug or are interested in contributing to this project check out django-all-access on Github.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fdemmer_django_all_access-1.4.0.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fdemmer_django_all_access-1.4.0-py2.py3-none-any.whl (27.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file fdemmer_django_all_access-1.4.0.tar.gz.

File metadata

File hashes

Hashes for fdemmer_django_all_access-1.4.0.tar.gz
Algorithm Hash digest
SHA256 020f720c21b98f8720af6dce7bc87332b3a2808f84cba4072abe68a7d92b84a2
MD5 0654242bfe2312a59d58b35df9da79f6
BLAKE2b-256 925c720269cbd5b029852343a27d0832f699cbe2935e2532db37c65920e85f0c

See more details on using hashes here.

File details

Details for the file fdemmer_django_all_access-1.4.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for fdemmer_django_all_access-1.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bf6313c8d118d927222b77ee0a04c8c9341c88bcde9ce7bd5c88a53a33f7b730
MD5 439d8d40f1adc060e2eebe259ceef25a
BLAKE2b-256 03dd43bc4f2278daec78596175d2f44522d3afca022bbc3b3fe46996de738dc4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page