All Projects → c-bata → Django Auth Example

c-bata / Django Auth Example

Sample project for my talk at DjangoCongress JP 2018.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Django Auth Example

Djangosaml2
A maintenance fork of the original and no longer maintained djangosaml2 library.
Stars: ✭ 143 (+376.67%)
Mutual labels:  django, authentication
Django Rest Registration
User-related REST API based on the awesome Django REST Framework
Stars: ✭ 240 (+700%)
Mutual labels:  django, authentication
Django Auth Tutorial
Source code for Django authentication tutorial.
Stars: ✭ 160 (+433.33%)
Mutual labels:  django, authentication
Django Graphql Social Auth
Python Social Auth support for Graphene Django
Stars: ✭ 90 (+200%)
Mutual labels:  django, authentication
Dj Rest Auth
Authentication for Django Rest Framework
Stars: ✭ 491 (+1536.67%)
Mutual labels:  django, authentication
Django rest Vuejs Auth
An Authentication project using JWT Tokens, Vuejs(frontend) and Django-Rest(backend).
Stars: ✭ 92 (+206.67%)
Mutual labels:  django, authentication
Django Graphql Auth
Django registration and authentication with GraphQL.
Stars: ✭ 200 (+566.67%)
Mutual labels:  django, authentication
Django Two Factor Auth
Complete Two-Factor Authentication for Django providing the easiest integration into most Django projects.
Stars: ✭ 967 (+3123.33%)
Mutual labels:  django, authentication
Django Rest Framework Passwordless
Passwordless Auth for Django REST Framework
Stars: ✭ 412 (+1273.33%)
Mutual labels:  django, authentication
Django Saml2 Auth
Django SAML2 Authentication Made Easy. Easily integrate with SAML2 SSO identity providers like Okta
Stars: ✭ 405 (+1250%)
Mutual labels:  django, authentication
Djaoapp
User login, billing, access control as part of a session proxy
Stars: ✭ 61 (+103.33%)
Mutual labels:  django, authentication
Django Graphql Jwt
JSON Web Token (JWT) authentication for Graphene Django
Stars: ✭ 649 (+2063.33%)
Mutual labels:  django, authentication
Django Channels React Multiplayer
turn based strategy game using django channels, redux, and react hooks
Stars: ✭ 52 (+73.33%)
Mutual labels:  django, authentication
Django Auth Adfs
A Django authentication backend for Microsoft ADFS and AzureAD
Stars: ✭ 127 (+323.33%)
Mutual labels:  django, authentication
Django Unifi Portal
Authenticate Unifi WiFi Guests with Django
Stars: ✭ 50 (+66.67%)
Mutual labels:  django, authentication
Django Rest Auth
This app makes it extremely easy to build Django powered SPA's (Single Page App) or Mobile apps exposing all registration and authentication related functionality as CBV's (Class Base View) and REST (JSON)
Stars: ✭ 2,289 (+7530%)
Mutual labels:  django, authentication
Django Oidc Provider
OpenID Connect and OAuth2 provider implementation for Djangonauts.
Stars: ✭ 320 (+966.67%)
Mutual labels:  django, authentication
Django Sesame
"Magic Links" - URLs with authentication tokens for one-click login
Stars: ✭ 533 (+1676.67%)
Mutual labels:  django, authentication
Django Oidc Rp
A server side OpenID Connect Relying Party (RP, Client) implementation for Django.
Stars: ✭ 16 (-46.67%)
Mutual labels:  django, authentication
Sentry
Sentry is cross-platform application monitoring, with a focus on error reporting.
Stars: ✭ 29,700 (+98900%)
Mutual labels:  django

django-auth-example

Sample source code for my talk (title: "Djangoの認証処理実装パターン" in Japanese) at Django Congress JP 2018. In this talk, I introduced how to implement some authentication patterns in django.

Requirements

  • Python 3.7
  • Django 2.2
  • And others listed in requirements.txt

Setup databases using Docker and Run application on local machine

# django
export DJ_SECRET_KEY=secretkey
export DJ_DEBUG=True

# social-auth
export SOCIAL_AUTH_GITHUB_KEY=xxxxxxxxxxxxxxxxxxxx
export SOCIAL_AUTH_GITHUB_SECRET=yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy

Running:

$ pip -c requirements/constraints.txt install -r requirements/develop.txt
$ python manage.py migrate
$ python manage.py insert_dummy_data
$ python manage.py runserver

Branch structures

  • master: The project on master branch customizing User model, supporting Github OAuth.
  • base: Base branch to see the changes of each Pull Requests to describe following features.
    • email-auth-backend: Email/Password authentication built on custom authentication backend.
    • customize-user-model: How to define custom user model from AbstractBaseUser.
    • django-social-auth: Social authentication using social-auth-core.
    • github-oauth-from-scratch: Social authentication from scratch (There is no dependency with social-auth-core).

License

This software is released under the MIT License, see LICENSE.txt.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].