<@U04S8PLJWMT> i'm building low_code Custom Connec...
# ask-ai
h
@kapa.ai i'm building low_code Custom Connector, it uses cooke based authentication
Copy code
{
  "status": 204,
  "body": "",
  "headers": {
    "Cache-Control": "private",
    "Set-Cookie": "ASP.NET_SessionId=sjv1avfhyd4andeephwzjh03; path=/; HttpOnly; SameSite=Lax, UserBranch=; path=/, Locale=Culture=en-US&TimeZone=GMTM0800A; expires=Mon, 14-Jul-2025 08:35:03 GMT; path=/, CompanyID=360 Test; expires=Mon, 14-Jul-2025 08:35:03 GMT; path=/, .ASPXAUTH=21CA592220E16DA0EDFCB0CED5D923FA34F30CA2EC7645C69F40CB1C8AE2973360F88E1A4AC9E64064A60D05036BB5E89FCDE99962018BD959CDBB9E2514A5E44E59CFFA3DE661D9A298AAD85A9E07BED38E7750A01AEB92D3472D8A0047556F0ED1A4C006912566F18707D4665D9D1B51D810FD228F6772CFA56E9789EE8ECAAC47CC6C; path=/; secure; HttpOnly; SameSite=None, ASP.NET_SessionId=sjv1avfhyd4andeephwzjh03; path=/; HttpOnly; SameSite=Lax, UserBranch=; path=/, Locale=Culture=en-US&TimeZone=GMTM0800A; expires=Mon, 14-Jul-2025 08:35:03 GMT; path=/, CompanyID=360 Test; expires=Mon, 14-Jul-2025 08:35:03 GMT; path=/, .ASPXAUTH=21CA592220E16DA0EDFCB0CED5D923FA34F30CA2EC7645C69F40CB1C8AE2973360F88E1A4AC9E64064A60D05036BB5E89FCDE99962018BD959CDBB9E2514A5E44E59CFFA3DE661D9A298AAD85A9E07BED38E7750A01AEB92D3472D8A0047556F0ED1A4C006912566F18707D4665D9D1B51D810FD228F6772CFA56E9789EE8ECAAC47CC6C; path=/; secure; HttpOnly; SameSite=None, requestid=8173B09C10026F8311F05E31EF72B8A4; path=/, requeststat=+st:387+sc:~/entity/auth/login+start:638878197029037864+tg:; path=/",
    "Date": "Fri, 11 Jul 2025 08:35:02 GMT"
  }
}
I need to use the SET_COOKIE in a session path, how to achieve it
k
I'm sorry, but the current Airbyte low-code (Connector Builder or config-based YAML) framework does not natively support extracting authentication tokens or session information from the Set-Cookie header in HTTP responses. The session token path configuration expects the token to be present in the JSON body of the response, not in the headers. This limitation is confirmed by both the documentation and user reports: - The [SessionTokenAuthenticator](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/SessionTokenAuthenticator) expects the session token to be extracted from the response body using a JSON path, not from headers. - A [GitHub issue](https://github.com/airbytehq/airbyte/issues/43320) highlights that the session token path cannot reference the full body or headers, and there is currently no way to extract tokens from the Set-Cookie header using the low-code tools. If you need to handle cookie-based authentication, you would need to implement a custom Python connector using the Airbyte CDK, where you can manually handle cookies as shown in this [forum post](https://discuss.airbyte.io/t/549):
Copy code
python class CookieAuthenticator(HttpAuthenticator):     def __init__(self, config):         self.cookie_jar = self.login(config["api_key"], config["username"], config["password"])      def login(self, api_key, username, password):         # ... perform login and extract cookies ...         return resp.cookies      def get_auth_header(self) -> Mapping[str, Any]:         return {"cookie": "; ".join([f"{k}={v}" for k, v in requests.utils.dict_from_cookiejar(self.cookie_jar).items()])}
In summary: You cannot extract or use Set-Cookie values for authentication in Airbyte's low-code connector builder at this time. You must use a custom Python connector for cookie-based authentication. If you need further guidance on building a custom connector, let me know!