Probes remote HTTP bearer auth, returning evidence and status.
// Source: https://github.com/tutti-os/tutti | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package providerstatus
import (
"context"
"fmt"
"io"
"net/http"
"strings"
"time"
"github.com/tutti-os/tutti/packages/agent/daemon/httpx"
"github.com/tutti-os/tutti/packages/agent/daemon/providerregistry"
)
const remoteAuthResponseLimit = 1024 * 1024
type RemoteAuthHTTPClient interface {
Do(*http.Request) (*http.Response, error)
}
// RemoteAuthProbeResult contains credential-free provider evidence plus an
// optional successful response body for consumers that also project usage.
// Error is diagnostic only; callers reduce Evidence instead of mapping errors
// directly to auth
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key