<@U04S8PLJWMT> Use CustomAuthenticator on Airbyte ...
# ask-ai
c
@kapa.ai Use CustomAuthenticator on Airbyte Cloud
k
To use a
CustomAuthenticator
in Airbyte (including Airbyte Cloud), you need to define it in your connector's YAML configuration. The
CustomAuthenticator
allows you to implement custom authentication logic by referencing a Python class that extends
DeclarativeAuthenticator
. This is necessary for APIs that require complex or non-standard authentication flows. Here’s how you define a
CustomAuthenticator
in your YAML:
Copy code
yaml authenticator:   type: CustomAuthenticator   class_name: source_<name>.<package>.<class_name>   # Optionally, you can add parameters here   $parameters:     param1: value1     param2: value2
-
class_name
should be the fully-qualified name of your custom authenticator class, which must be a subclass of
DeclarativeAuthenticator
. For example:
source_railz.components.ShortLivedTokenAuthenticator
-
$parameters
can be used to pass additional parameters to your custom authenticator if needed. Important: To use a
CustomAuthenticator
, you must implement the custom authentication logic in Python and package it with your connector. This approach is not supported directly in the Connector Builder UI; you need to use the low-code YAML/CDK or Python CDK for this purpose. This is required for APIs that need request signing, multi-step authentication, or other advanced flows that cannot be handled by the built-in authenticators. For more details, see the [CustomAuthenticator documentation](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/CustomAuthenticator) and the [Connector Builder UI authentication guide](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/authentication#custom-authentication-methods). If you are using Airbyte Cloud, the process is the same as for open-source Airbyte, but you must ensure your custom connector is built, packaged, and deployed to your Airbyte Cloud workspace. If you need to implement a custom authentication method, you cannot do this solely through the Connector Builder UI; you must use the low-code YAML/CDK or Python CDK and provide the custom class as described above. [CustomAuthenticator Reference](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/CustomAuthenticator) [Connector Builder UI Authentication](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/authentication#custom-authentication-methods)
c
@kapa.ai how to deploy CustomAuthenticator package to Airbyte Cloud
k
A message from kapa.ai
I'm sorry, but the knowledge sources do not contain explicit instructions on how to deploy a connector package using a CustomAuthenticator to Airbyte Cloud. The documentation describes how to define and use a CustomAuthenticator in a connector's YAML file and how to contribute connectors to the Airbyte Marketplace, but it does not provide specific steps for deploying such a package to Airbyte Cloud. If you need to deploy a custom connector with a CustomAuthenticator to Airbyte Cloud, you may need to consult Airbyte support or refer to additional documentation not included in the provided sources. If you have further details or a specific deployment scenario, please provide them, and I can check again for relevant information.