I am building a new connector that uses the Sessio...
# ask-ai
m
I am building a new connector that uses the SessionTokenAuthenticator and the airbyte-ci is failing with the following error message:
Copy code
jsonschema.exceptions.ValidationError: 'SessionTokenAuthenticator' is not one of ['ApiKeyAuthenticator']
 
Failed validating 'enum' in schema[0]['properties']['type']:
    {'enum': ['ApiKeyAuthenticator'], 'type': 'string'}
 
On instance['type']:
    'SessionTokenAuthenticator'
k
The error message you are seeing:
Copy code
jsonschema.exceptions.ValidationError: 'SessionTokenAuthenticator' is not one of ['ApiKeyAuthenticator']
indicates that the schema being used to validate your connector's YAML does not recognize
SessionTokenAuthenticator
as a valid authenticator type. Instead, it only allows
ApiKeyAuthenticator
. This typically happens when the connector builder or the schema version you are using does not support the
SessionTokenAuthenticator
yet, or the schema definition being referenced is outdated or limited to a subset of authenticators (such as only
ApiKeyAuthenticator
). This is similar to a known issue where users tried to use
JwtAuthenticator
and encountered a schema that only allowed
ApiKeyAuthenticator
as well, resulting in a validation error with the same structure [JwtAuthenticator in no-code builder](https://github.com/airbytehq/airbyte/discussions/46868). What you can do: - Ensure you are using the latest version of the Airbyte platform and the connector builder, as support for new authenticators like
SessionTokenAuthenticator
may only be available in recent releases. - Double-check that your connector's manifest and the environment (including the CI pipeline) are referencing the correct and up-to-date schema that includes
SessionTokenAuthenticator
as a valid option. - If you are using the Connector Builder UI, make sure you are not restricted by a simplified schema that only supports a subset of authenticators. If after updating you still encounter this issue, it may be a limitation or bug in the current version of the builder or schema. In that case, you may need to reach out to the Airbyte team or check for updates regarding support for
SessionTokenAuthenticator
in your development environment. Summary: Your error is due to the schema not recognizing
SessionTokenAuthenticator
as a valid type, likely because of an outdated or restricted schema. Update your Airbyte platform and ensure your schema supports this authenticator type. If the problem persists, it may be a current limitation of the builder or CI environment, as seen in similar issues with other authenticators [JwtAuthenticator in no-code builder](https://github.com/airbytehq/airbyte/discussions/46868).