view connectors/auth_http_adapter.h @ 282:6bd4a3990696 default tip

Add cross-platform canvas orchestration and typed composer Enable native ARM dependencies, macOS Copilot orchestration, portable service supervision, CPU dictation, and a shared N-key speak-or-type composer. Co-authored-by: Copilot <[email protected]> Copilot-Session: f68442b1-fa8f-46a0-9689-81710613bbd4
author MrJuneJune <me@mrjunejune.com>
date Thu, 20 Aug 2026 20:45:25 -0700
parents b3b547563ec7
children
line wrap: on
line source

#ifndef ZENBU_CONNECTOR_AUTH_HTTP_ADAPTER_H
#define ZENBU_CONNECTOR_AUTH_HTTP_ADAPTER_H

#include "auth/auth_http.h"
#include "connectors/connector.h"

typedef struct {
  Auth_Store *store;
  uint8 cookie_secret[AUTH_CRYPTO_COOKIE_SECRET_MAX_BYTES];
  size_t cookie_secret_length;
  int64 session_idle_ttl_secs;
} Connector_Auth_HTTP_Context;

boolean Connector_Auth_HTTP_Init(
    Connector_Auth_HTTP_Context *context,
    const char *database_path,
    const char *cookie_secret_hex,
    int64 session_idle_ttl_secs);

void Connector_Auth_HTTP_Destroy(Connector_Auth_HTTP_Context *context);

Connector_Auth_Adapter Connector_Auth_HTTP_Create_Adapter(
    Connector_Auth_HTTP_Context *context);

#endif