Skip to content

PyCon JP 2022「Python Social Authで学ぶ、OAuth2.0認可コードフローにおける異常系への対処」のサンプルアプリケーション

License

Notifications You must be signed in to change notification settings

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

Repository files navigation

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

About

PyCon JP 2022「Python Social Authで学ぶ、OAuth2.0認可コードフローにおける異常系への対処」のサンプルアプリケーション

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published