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_authenticator

authenticator = create_authenticator("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.1.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zepben.auth-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.7.11

File hashes

Hashes for zepben.auth-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 196405e9ef6882db0c96980e4a17e3fe1fc1a154d79ea2ecc6a7e358969c7a75
MD5 4d3422aedbabb77890435ca9ceae634a
BLAKE2b-256 2a36e205e608e19a599d2ea3627be4c08b1e0a18de4b7f5fd6cc881c2dc80c04

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