Help us shape the future of Go! Take the 2026 Go Developer Survey

authentication

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package authentication coordinates explicit ACP login without owning the agents' credential files. Discovery and background probes never authenticate.

Index

Constants

This section is empty.

Variables

View Source
var ErrInProgress = errors.New("Agent authentication is already in progress")

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(root context.Context, catalog *catalog.Service, settings config.SettingsService, cache *probe.CacheService, acquire func(string) (func(), bool)) *Service

func (*Service) Cancel

func (s *Service) Cancel(agentID, attemptID string) error

func (*Service) CancelAgent

func (s *Service) CancelAgent(ctx context.Context, agentID string) error

func (*Service) Info

func (s *Service) Info(ctx context.Context, agentID string) (model.AgentAuthResponse, error)

func (*Service) Read

func (s *Service) Read(agentID, attemptID string) (model.AgentAuthAttempt, error)

func (*Service) Start

func (s *Service) Start(ctx context.Context, agentID string, request model.AgentAuthRequest) (model.AgentAuthAttempt, error)

Start is idempotent for an already working login: verify first, authenticate only when session/new reports missing credentials, then verify again using a fresh process and the exact current environment version.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL