Pro tip: A custom Steemconnect authentication backend for Django apps

in #python6 years ago (edited)

carbon (11).png


See the source at Github Gists.

Usage


  • Save this somewhere in your project. Ex: steemconnect_backend.py
  • Edit your settings an add this new auth backend:
AUTHENTICATION_BACKENDS = [
    'somewhere.inyourproject.SteemConnectBackend',
    'django.contrib.auth.backends.ModelBackend',
]

Notes


  • Requires steemconnect-python-client
  • You can also set profile information on user creation. (image, about, location)

Coin Marketplace

STEEM 0.26
TRX 0.11
JST 0.033
BTC 62796.11
ETH 3045.55
USDT 1.00
SBD 3.85