Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
docs: enhance Ansible and Python SDK authentication sections to include Token Auth details
Victor Santosa292a3e56cb0
diff --git a/docs/integrations/platforms/ansible.mdx b/docs/integrations/platforms/ansible.mdxindex 85f63079f0..7db74f20db 100644--- a/docs/integrations/platforms/ansible.mdx+++ b/docs/integrations/platforms/ansible.mdx@@ -36,7 +36,7 @@ You can either call modules by their Fully Qualified Collection Name (FQCN), suc### Authentication-The Infisical Ansible Collection supports [Universal Auth](/documentation/platform/identities/universal-auth) and [OIDC](/documentation/platform/identities/oidc-auth/general) for authenticating against Infisical.+The Infisical Ansible Collection supports [Universal Auth](/documentation/platform/identities/universal-auth), [OIDC Auth](/documentation/platform/identities/oidc-auth/general), and [Token Auth](/documentation/platform/identities/token-auth) for authenticating against Infisical.<AccordionGroup>@@ -77,6 +77,26 @@ The Infisical Ansible Collection supports [Universal Auth](/documentation/platfo| jwt | `INFISICAL_JWT` |</Accordion>++ <Accordion title="Token Auth">+ Token Auth is the simplest authentication method that allows you to authenticate directly with an access token. This can be either a [Machine Identity Token Auth](/documentation/platform/identities/token-auth) token or a User JWT token.++ <Note>+ Please note that in order to use Token Auth, you must have `1.1.4` or newer of the `infisicalsdk` package installed.+ </Note>++ ```yaml+ lookup('infisical.vault.read_secrets', auth_method="token_auth", token='<your-token>' ...rest)+ ```++ You can also provide the `auth_method` and `token` parameters through environment variables:++ | Parameter Name | Environment Variable Name |+ | -------------- | ------------------------- |+ | auth_method | `INFISICAL_AUTH_METHOD` |+ | token | `INFISICAL_TOKEN` |++ </Accordion></AccordionGroup>### Examplesdiff --git a/docs/sdks/languages/python.mdx b/docs/sdks/languages/python.mdxindex 670e0975ab..d69f191737 100644--- a/docs/sdks/languages/python.mdx+++ b/docs/sdks/languages/python.mdx@@ -108,6 +108,15 @@ response = client.auth.oidc_auth.login(This authentication method is useful when integrating with OIDC-compliant identity providers like Okta, Auth0, or any service that issues OIDC tokens.+#### Token Auth++```python+response = client.auth.token_auth.login(token="<your-token>")+```++**Parameters:**+- `token` (str): The access token to authenticate with. This can be a [machine identity token](/documentation/platform/identities/token-auth) or a user access token.+### `secrets`This sub-class handles operations related to secrets: