Skip to main content

Utilities for authenticating to the Evolve App Server and Energy Workbench Server

Project description

Zepben Auth Library

This library provides Authentication mechanisms for Zepben SDKs used with Energy Workbench and other Zepben services.

Typically this library will be used by the SDKs to plug into connection mechanisms. It is unlikely that end users will need to use this library directly.

Usage

from zepben.auth import create_token_fetcher

authenticator = create_token_fetcher("https://localhost/auth")

authenticator.token_request_data.update({
    {
        "grant_type": "password",
        "username": "<username>",
        "password": "<password>",
        "scope": "offline_access openid profile email",
        "client_id": "<client_id>"
    }
})
authenticator.refresh_request_data.update({
    "grant_type": "refresh_token",
    "scope": "offline_access openid profile email",
    "client_id": "<client_id>"
})

token = authenticator.fetch_token()

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

zepben.auth-0.7.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file zepben.auth-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: zepben.auth-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.12

File hashes

Hashes for zepben.auth-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 80a86a080e87fb9460110d0f69cf938d89be7915f84595d3d5fd463a90fa160c
MD5 a50424da493fd76add39c2fccdad1af0
BLAKE2b-256 7523c5a6ad6cc5037aa98855f86226615a2a3997065d6a9675517b684627608f

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