Skip to content

Instantly share code, notes, and snippets.

View jcf-dev's full-sized avatar
🐒
goin' monke

Joween Flores jcf-dev

🐒
goin' monke
View GitHub Profile
[tool.poetry]
name = "backend"
version = "0.1.0"
description = ""
authors = ["REDACTED"]
[tool.poetry.dependencies]
python = "^3.10"
Django = "^4.0.2"
djangorestframework = "^3.13.1"
@jcf-dev
jcf-dev / 01_complete_authentication_as_api.md
Created November 12, 2020 07:39 — forked from dgilge/01_complete_authentication_as_api.md
How to implement all needed auth endpoints including login with OAuth2 for a SPA using Django REST framework, django-rest-auth and django-allauth

Complete authentication as API including OAuth2 endpoints

I implemented an auth API for a SPA. This is rarely documented and therefore I want to share here how I did it hoping it will be a help for others.

We are still working on it and I'll update this document accordingly.

This tutorial uses following versions:

Package Version
/**
* Copyright 2013 John Smith
*
* This file is part of Jewelsea Tic-Tac-Toe.
*
* Jewelsea Tic-Tac-Toe is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*