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 --help
Create a token for channel access:
$ edgeauth --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-1.2.6-py2.py3-none-any.whl
.
File metadata
- Download URL: phenix_edge_auth-1.2.6-py2.py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | beb76b3c3a567ba9646d8d95a789c3e06279575abe92c8e0424ee1d22e063048 |
|
MD5 | 2976f64e8c7bb3a177dd3fcb685c1974 |
|
BLAKE2b-256 | 8f37f9e15985c21636efc18b7899072b2db3d7c57d75467ec8a6c1b9fa6a9116 |