Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 807 Bytes

File metadata and controls

37 lines (24 loc) · 807 Bytes

learn-oauth-errors-with-python-social-auth

https://speakerdeck.com/yktakaha4/python-social-authdexue-bu-oauth2-dot-0ren-ke-kodohuroniokeruyi-chang-xi-henodui-chu

Prerequirements

  • Python 3.10
    • Poetry
  • Direnv (optional)

Usage

Register a new OAuth Application

https://github.com/settings/applications/new

Name Value
Application name Your application name
Homepage URL Your repository URL
Authorization callback URL http://localhost:8000/social/complete/github

Then, click Generate a new client secret, copy Client ID and Client secrets

Run Server

# set secrets
$ cp -p .envrc.sample .envrc
$ direnv allow

$ poetry install

$ poetry run ./manage.py migrate

$ poetry run ./manage.py runserver