Skip to main content

A flask extension that allows login via Beet app

Project description

Flask-Beet Extension

build status codecov

Flask-beet is a Flask extension for allow login (flask-security/flask-login) via signed messages and the Beet app.

The login requires a unique string to be signed and submitted. The signature is created with the memo key of an account on the BitShares Blockchain,

Installation

Install the extension with one of the following commands:

$ pip install flask_beet

Usage

Using Flask-Beet is fairly straightforward. Begin by importing the extension and then passing your application object back to the extension, like this:

from flask import Flask
from flask_beet import Beet
app = Flask(__name__)
beet = Beet(app)

You'll also need to extend your user model with the BeetMixin mixin:

from flask_beet import BeetMixin

# Replace
-class User(db.Model, UserMixin):

# with
+class User(db.Model, UserMixin, BeetMixin):

Documentation

The Sphinx-compiled documentation is available here: flask-beet.rtfd.io

Development

This tool uses semversioner to track changes. After changes, please use

semversioner add-change --type patch --description "Fix security vulnerability with authentication."

to track them.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Flask-Beet-0.0.2.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

Flask_Beet-0.0.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file Flask-Beet-0.0.2.tar.gz.

File metadata

  • Download URL: Flask-Beet-0.0.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for Flask-Beet-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ee264786c2d1f0f6ad3f77dc0ae98e4e1f070569ac6f34758e5da2820a61d7f6
MD5 46ca8e5449d6696dc2fdc6aa1a206ae6
BLAKE2b-256 f81a47609185ca438a695d4f33ba7a788b32562aeb2d14eae64bd6206ee9e5b2

See more details on using hashes here.

File details

Details for the file Flask_Beet-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: Flask_Beet-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for Flask_Beet-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9cea2ad0038273de8a5b64ed94afaa70ef10c6716cc95504252f80966f77a45a
MD5 40bf7fc5b6788cbb14c68a5f86435da0
BLAKE2b-256 f059160d7076beb9f5211ea90386f2f34c4b37f3aa7cffdfd52e93eae61b34c3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page