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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for blender-id-oauth-client-0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68a37cc6b4786b2b4c3d798bc3cf8c87bd28839f597446f96f6dc3ddcf508fde |
|
MD5 | c2b81424834195b04dc590974053c1e1 |
|
BLAKE2b-256 | e26db05f846317fbd081c6fcb167ae7dd20ea5477b4b8326b530a536630e7ca9 |
Hashes for blender_id_oauth_client-0.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b039ab1e7e274c9f333c88e60724a5e8ec72aa6ef28e89a43a11cfbfd3fdd6c5 |
|
MD5 | 5411b8e57475b9926aa4ff82a356981b |
|
BLAKE2b-256 | 0210ae343d5a80c4fed61c32e3c056cd1cbfcda7f7128005a61c2fedc3dc6bee |