Skip to main content

A Django app to authenticate against Blender ID.

Project description

This OAuth Client allows your Django application to authenticate against Blender ID, the authentication service of Blender Foundation.

Quick start

  • Add ‘blender_id_oauth_client’ to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'blender_id_oauth_client',
    ]
  • Add BLENDER_ID configuration:

    BLENDER_ID = {
        # MUST end in a slash:
        'BASE_URL': 'http://id.local:8000/',
        'OAUTH_CLIENT': 'TEST-CLIENT-ID',
        'OAUTH_SECRET': 'TEST-SECRET'
    }
  • Configure the correct URLs for logging in and out:

    LOGIN_URL = '/oauth/login'
    LOGOUT_URL = '/oauth/logout'
    LOGIN_REDIRECT_URL = '/redir-target-after-login'
    
    # Set to empty string to remain on Blender ID after logging out:
    LOGOUT_REDIRECT_URL = '/redir-target-after-logout'
  • Include the URLconf in your project urls.py like this:

    path('oauth/', include('blender_id_oauth_client.urls')),
  • Run python manage.py migrate to create the polls models.

  • Start the development server and visit http://127.0.0.1:8000/oauth/login to create a local user by authenticating against Blender ID.

  • Run python manage.py makesuperuser your@email to make yourself a superuser.

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

blender-id-oauth-client-0.5.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

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

blender_id_oauth_client-0.5-py2.py3-none-any.whl (16.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file blender-id-oauth-client-0.5.tar.gz.

File metadata

  • Download URL: blender-id-oauth-client-0.5.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for blender-id-oauth-client-0.5.tar.gz
Algorithm Hash digest
SHA256 4478d7da8ba71075637e253f7f5485c617d332f459a18b9c62352e4aa00adb3c
MD5 115f0694947e015b828118c83042cc16
BLAKE2b-256 802ecf5567297d7027f1ba7f10c0dea2cebb29191a0342dc08f4e0213285a6fe

See more details on using hashes here.

File details

Details for the file blender_id_oauth_client-0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: blender_id_oauth_client-0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for blender_id_oauth_client-0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c2b38f66c337eef9766a8c4d20dc279172e100facb8b299251e40065eb02a142
MD5 bf1a1e86ff5860b026c294d6e5125994
BLAKE2b-256 b6ed422e95e654cbe1fee85d7eb375ce9f0ce5c4e2033298f8995767dadd5659

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