Skip to main content

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

phenix_edge_auth-1.2.6-py2.py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 2 Python 3

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