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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file blender-id-oauth-client-0.4.tar.gz.
File metadata
- Download URL: blender-id-oauth-client-0.4.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b2a341581c6dece7f87d561857d7cb35375eeb22cc886750e404e999a3244b8
|
|
| MD5 |
1ac45dc3da8989c3be4756502761848e
|
|
| BLAKE2b-256 |
09063c47a576b7e1961c5ab958590e7d3a933af64f9f50ac256de3694721b13e
|
File details
Details for the file blender_id_oauth_client-0.4-py2.py3-none-any.whl.
File metadata
- Download URL: blender_id_oauth_client-0.4-py2.py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8536ad81bed7af42f517a3d76cba62fefb066c03b1c118b31cc28e25cac5f300
|
|
| MD5 |
5937116b34aeb041a668d5d34ac26204
|
|
| BLAKE2b-256 |
bbb462b5975f553467b202d3253f4cf47a07f9bcbcbe5f7cf7bde59f738e8633
|