Skip to main content

Versatile Data Kit plugin library provides support for authentication.

Project description

vdk-control-api-auth

monthly download count for vdk-control-api-auth

vdk-control-api-auth is a plugin library that implements authentication utilities used by vdk-control-cli and other plugins.

Usage

This is a library plugin, not a runnable plugin, and it is intended to be used as a dependency for other plugins, which need to authenticate users.

To use the library within a plugin or another Versatile Data Kit component, just import the Authentication class, and create an instance of it. The different authentication flows require different parameters to be specified.

Once everything is done, in order to authenticate, call .authenticate() on the Authentication instance.

Example Usage:

from vdk.plugin.control_api_auth.authentication import Authentication

auth = Authentication(
    token="<oauth-api-token>",
    authorization_url="https://some-authorization-endpoint",
    auth_type="api-token",
)

auth.authenticate()   # authenticate

auth.read_access_token()   # fetch the cached access token

Build and testing

In order to build and test a plugin go to the plugin directory and use ../build-plugin.sh script to build it

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vdk-control-api-auth-0.1.1184833162.tar.gz (16.5 kB view details)

Uploaded Source

File details

Details for the file vdk-control-api-auth-0.1.1184833162.tar.gz.

File metadata

File hashes

Hashes for vdk-control-api-auth-0.1.1184833162.tar.gz
Algorithm Hash digest
SHA256 335681c0f484cfc54e124cdc7f41a171e6f02f6b919f92b75358c5b2a7466a9a
MD5 7e787e84ea72ef9ec598bc044f618ab2
BLAKE2b-256 eea52762bb6e1f6941e794911b45ede23dff2c10f7660f0ba22e472638597a75

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