Skip to main content

Django 的 Blockstack ID 身份验证后端

项目描述

https://badge.fury.io/py/django-blockstack-auth.svg https://travis-ci.org/dotpodcast/django-blockstack-auth.svg?branch=master https://codecov.io/gh/dotpodcast/django-blockstack-auth/branch/master/graph/badge.svg

Django 的 Blockstack ID 身份验证后端

文档

完整的文档位于https://django-blockstack-auth.readthedocs.io

快速开始

安装 Django Blockstack 身份验证:

pip install django-blockstack-auth

将其添加到您的INSTALLED_APPS

INSTALLED_APPS = (
    ...
    'django_blockstack_auth.apps.DjangoBlockstackAuthConfig',
    ...
)

添加 Django Blockstack Auth 的 URL 模式:

from django_blockstack_auth import urls as django_blockstack_auth_urls


urlpatterns = [
    ...
    url(r'^blockstack/', include(django_blockstack_auth_urls, namespace='blockstack')),
    ...
]

特征

  • 允许用户使用他们的 Blockstack ID 进行身份验证

  • 使用 Django 密钥加密 Blockstack 令牌

运行测试

代码真的有效吗?

$ pip install detox
$ source <YOURVIRTUALENV>/bin/activate
(myenv) $ detox

学分

用于渲染此包的工具:

历史

0.1.0 (2017-12-05)

  • PyPI 上的第一个版本。

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

django-blockstack-auth-0.1.3.tar.gz (593.7 kB 查看哈希)

已上传 source