comparison connectors/auth_http_adapter.h @ 279:b3b547563ec7

Add Google connector service and agent wiki Implement the C/Seobeo Google Drive and Gmail connector with encrypted OAuth storage, Zenbu authentication, browser testing, AI tool discovery, chunked HTTP decoding, and Bazel coverage. Consolidate repository guidance into progressive wiki documentation and enforce arena-first allocation for new first-party C code. Co-authored-by: Copilot <[email protected]> Copilot-Session: 84c338fd-0939-4bb3-b7f3-1062eb213e5d
author MrJuneJune <me@mrjunejune.com>
date Mon, 17 Aug 2026 22:22:36 -0700
parents
children
comparison
equal deleted inserted replaced
278:8d560f50ed4c 279:b3b547563ec7
1 #ifndef ZENBU_CONNECTOR_AUTH_HTTP_ADAPTER_H
2 #define ZENBU_CONNECTOR_AUTH_HTTP_ADAPTER_H
3
4 #include "auth/auth_http.h"
5 #include "connectors/connector.h"
6
7 typedef struct {
8 Auth_Store *store;
9 uint8 cookie_secret[AUTH_CRYPTO_COOKIE_SECRET_MAX_BYTES];
10 size_t cookie_secret_length;
11 int64 session_idle_ttl_secs;
12 } Connector_Auth_HTTP_Context;
13
14 boolean Connector_Auth_HTTP_Init(
15 Connector_Auth_HTTP_Context *context,
16 const char *database_path,
17 const char *cookie_secret_hex,
18 int64 session_idle_ttl_secs);
19
20 void Connector_Auth_HTTP_Destroy(Connector_Auth_HTTP_Context *context);
21
22 Connector_Auth_Adapter Connector_Auth_HTTP_Create_Adapter(
23 Connector_Auth_HTTP_Context *context);
24
25 #endif