@affinidi-tdk/auth-provider
Affinidi TDK internal module for managing access token (project scoped token) to Affinidi services via Affinidi TDK clients.
Prerequisites
Ensure you have the following installed:
-
Node.js v20.x or later
💡 Node.js v20 is supported, but the LTS (Long Term Support) version is recommended for better stability and performance. For details on current LTS version check Node.js releases page.
-
npm v11.6.0+ (Node.js package manager)
To initialize AuthProvider, Personal Access Token (PAT) details should be provided. To create PAT, use Affinidi CLI's create-token command.
affinidi token create-token -n MyNewToken -w -p YOUR-SECRET-PASSPHRASE
This command will return you variables to initialize AuthProvider.
Install
Javascript
npm install @affinidi-tdk/auth-provider
Python
Install Python package
run inside python virtual env
pip install affinidi_tdk_auth_provider
Usage
Python package usage
import affinidi_tdk_auth_provider
stats = {
keyId,
tokenId,
passphrase,
privateKey,
projectId,
}
authProvider = affinidi_tdk_auth_provider.AuthProvider(stats)
projectScopedToken = authProvider.fetch_project_scoped_token()
Javascript package usage
import { AuthProvider } from '@affinidi-tdk/auth-provider'
const authProvider = new AuthProvider({
keyId,
tokenId,
passphrase,
privateKey,
projectId,
})
const projectScopedToken = await authProvider.fetchProjectScopedToken()
Metadata
Release files for affinidi-tdk-auth-provider 1.35.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| affinidi_tdk_auth_provider-1.35.3.tar.gz | 1.5 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| affinidi_tdk_auth_provider-1.35.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.0 MB
Release files / affinidi_tdk_auth_provider-1.35.3.tar.gz
| Download URL | affinidi_tdk_auth_provider-1.35.3.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d714d4985cfa52234a3577775facf87e4f7d3d3358fbf8427249011f77b70f60
|
|
BLAKE2b-256 checksum How to use checksums |
bee3239723d4e9cbd94b00f3b5acc4afe0600df402795d7f13ea700bc627ba28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / affinidi_tdk_auth_provider-1.35.3-py3-none-any.whl
| Download URL | affinidi_tdk_auth_provider-1.35.3-py3-none-any.whl |
|---|---|
| Size | 1.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb3c9e5940d3cc5487264c79f191dbe3d6c1180c8840fd9eaaf9c9a7ac332e85
|
|
BLAKE2b-256 checksum How to use checksums |
63935b566d9208ca7ed2e09582f0257b78dafd602143d3c675c63f7607d986ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for affinidi-tdk-auth-provider 1.35.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.