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.client 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.10.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zepben.auth-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for zepben.auth-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c1e6f5c33781dcf2bb095619f6a11b8d564a781362ca04619aad56d523be679
MD5 0b7c61dc25f32e34305b85a08484ecaa
BLAKE2b-256 6db6533dcd9e8aabe8292ef865c444118e226c54385a9bc95dce1bffca51d977

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