Skip to main content

Library for accessing Swagger-enabled API's with bitjws authentication.

Project description

Bravado-bitjws is an add on for Bravado that allows bitjws authentication.

Installation

At the moment, installing from source is the only supported method.

python setup.py install

Usage

Bravado-bitjws is used just like Bravado. The primary difference users need to be aware of is the management of bitjws keys.

Create a client with existing keys

# Your bitjws private key in WIF
privkey = "KweY4PozGhtkGPMvvD7vk7nLiN6211XZ2QGxLBMginAQW7MBbgp8"

# the URL of the swagger spec
url = "http://0.0.0.0:8002/static/swagger.json"

# initialize your client
client = BitJWSSwaggerClient.from_url(url, privkey=privkey)

If no key is provided to BitJWSSwaggerClient, one will be generated. However the private key originated, it is important to store private key somewhere secure.

Known Limitations

Currently there is no management of server keys. This means that Bravado-bitjws checks the signature of server responses, but trusts all keys. It is up to the Bravado-bitjws user to match the server’s key against a trusted list.

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

bravado-bitjws-0.1.1.tar.gz (5.0 kB view details)

Uploaded Source

File details

Details for the file bravado-bitjws-0.1.1.tar.gz.

File metadata

File hashes

Hashes for bravado-bitjws-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8af943ae763ebfba9d72b5fb008d0043c942f238930a767467c1b73c67439a72
MD5 cc272879847bae61ddf8cd12c77df0c1
BLAKE2b-256 bd36be911011388726e4ec02cf430db30ff472c590d7238895d94c032cfbe47c

See more details on using hashes here.

Supported by

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