Easily generate secure digest tokens to use with the Phenix platform
Project description
Phenix EdgeAuth Digest Tokens for Python
Easily generate secure digest tokens to use with the Phenix platform without requiring any networking activity.
Installation
To install Phenix Edge Authorization Digest Token with pip:
$ pip install phenix-edge-auth
Testing
$ pytest -vv
Example
from edgeauth.token_builder import TokenBuilder
# Create a token to access a channel
token = TokenBuilder()
.with_application_id('my-application-id') \
.with_secret('my-secret') \
.expires_in_seconds(3600) \
.for_channel('us-northeast#my-application-id#my-channel.1345') \
.build()
Command Line Examples
Display the help information:
$ edgeauth_cli --help
Create a token for channel access:
$ edgeauth_cli --application_id "my-application-id" --secret "my-secret" --expires_in_seconds 3600 --channel "us-northeast#my-application-id#my-channel.1345"
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file phenix_edge_auth-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: phenix_edge_auth-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e691b1d9f4e6bb4b92a1a538e2d4e4841e81ff424338164dbc221e6ff60a839 |
|
MD5 | 8fd264283b05b4f0dd487b2562138c05 |
|
BLAKE2b-256 | f5f747d66269014120a69e362a890494011413037cfb72e1f613a6b5a6deccfd |