Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/montudor/django-oidc-user
Use a custom OpenID Connect User model with Django
https://github.com/montudor/django-oidc-user
django openid-connect
Last synced: about 1 month ago
JSON representation
Use a custom OpenID Connect User model with Django
- Host: GitHub
- URL: https://github.com/montudor/django-oidc-user
- Owner: montudor
- License: mit
- Created: 2017-10-16T20:04:56.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-10T21:00:20.000Z (over 1 year ago)
- Last Synced: 2024-09-30T10:42:38.472Z (about 1 month ago)
- Topics: django, openid-connect
- Language: Python
- Homepage:
- Size: 41 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Django OpenID Connect User
An extended User model that is designed to have the majority of the attributes of what the OpenID Connect specification mentions.
## How to install
Installation can be done with a single command:
```
$ pip install django-oidc-user
```## How to use
Setup in your project is easy. Just add it to your installed apps:
```python
INSTALLED_APPS = [
. . .
'django_oidc_user',
]
```And you will need to set it as your default User model, so add the following line to your settings:
```python
AUTH_USER_MODEL = 'django_oidc_user.User'
```After you have done this make sure you **run migrations** using the following command:
```
$ python manage.py migrate django_oidc_user
```You can import the model to use in your views like so:
```python
from django_oidc_user.models import User
```