Versatile Data Kit plugin library provides support for authentication.
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file vdk-control-api-auth-0.1.1004516448.tar.gz
.
File metadata
- Download URL: vdk-control-api-auth-0.1.1004516448.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 317e21a5c58aa21d775dccd18b8362b9aa41d39ea4d05b833e6087797551a766 |
|
MD5 | d10f5ff6d69291c60254c2174140837d |
|
BLAKE2b-256 | abab773e56cda407300d29ae23bacd04937352031ccbaa672e0a2d71699f1d47 |