Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
B
blender-id-oauth-client
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
blender-institute
blender-id-oauth-client
Commits
92ad584c
Commit
92ad584c
authored
Jun 05, 2019
by
Sybren A. Stüvel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Converted `README.rst` to `README.md`
parent
a50679e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
46 deletions
+45
-46
README.md
README.md
+45
-0
README.rst
README.rst
+0
-46
No files found.
README.md
0 → 100644
View file @
92ad584c
# Blender ID OAuth Client
This OAuth Client allows your Django application to authenticate against
[
Blender ID
](
https://id.blender.org/
)
, 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.
README.rst
deleted
100644 → 0
View file @
a50679e5
Blender ID OAuth Client
=======================
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.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment