Skip to content

dacox/django-bitid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-bitid

A django app for bitId authentication.

WARNING: The bitId specification is a work in progress and it will probably change.

Installation

From pip:

pip instal django-bitid

Set Up

In your setting.py file, add the backend to AUTHENTICATION_BACKENDS.

djbitid.backends.BitIdBackend

You can implement your own login passing bitid_uri, callback_uri, signature and address to the backend or use the provided templates and forms.

Views, Templates and Forms

To use the provided templates and forms add djbitid to installed apps.

Then add to your urls

url(r'^bitid/', include('djbid.urls'))

The provided templates extend 'base.html'

Dependencies

  • PyBitID
  • south: provides migrations
  • pytz: for timezone aware date comparisons

Settings

Optional settings are:

BITID_USE_TESTNET

Use bitcoin testnet. Defaults to False

BITID_CHALLENGE_EXPIRATION_DELAY

Challenge expiration time in seconds. Defaults to 600 seconds.

About

A django app for bitId authentication

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.3%
  • HTML 2.7%