mirror of
https://github.com/hanzokms/python-sdk.git
synced 2026-10-30 20:30:11 +00:00
- Rename package: infisical_sdk -> hanzo_kms (pip: hanzokms) - Rename classes: InfisicalSDKClient -> KMSClient, InfisicalRequests -> KMSRequests, InfisicalError -> KMSError - Default API host: https://kms.hanzo.ai - Update all imports, docstrings, and user-facing strings - Copyright: Hanzo AI Inc. - Backward-compatible aliases: InfisicalSDKClient, InfisicalError - Env var: INFISICAL_AWS_IAM_AUTH_IDENTITY_ID -> HANZO_KMS_AWS_IAM_AUTH_IDENTITY_ID - Remove obsolete OpenAPI generator files (.travis.yml, .gitlab-ci.yml, etc.)
17 lines
746 B
Python
17 lines
746 B
Python
from hanzo_kms.kms_requests import KMSRequests
|
|
from hanzo_kms.resources.auth_methods import AWSAuth
|
|
from hanzo_kms.resources.auth_methods import UniversalAuth
|
|
from hanzo_kms.resources.auth_methods import OidcAuth
|
|
from hanzo_kms.resources.auth_methods import TokenAuth
|
|
from hanzo_kms.resources.auth_methods import LdapAuth
|
|
from typing import Callable
|
|
|
|
class Auth:
|
|
def __init__(self, requests: KMSRequests, setToken: Callable[[str], None]):
|
|
self.requests = requests
|
|
self.aws_auth = AWSAuth(requests, setToken)
|
|
self.universal_auth = UniversalAuth(requests, setToken)
|
|
self.oidc_auth = OidcAuth(requests, setToken)
|
|
self.token_auth = TokenAuth(setToken)
|
|
self.ldap_auth = LdapAuth(requests, setToken)
|