authvalidation

package
v1.42.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DescribeRetryCause added in v1.40.0

func DescribeRetryCause(err error) string

DescribeRetryCause gives a short user-facing reason; full errors are too long for a spinner line.

Types

type RetryNotifier added in v1.40.0

type RetryNotifier func(nextAttempt, maxAttempts uint, err error)

RetryNotifier lets callers show progress, since retries can stretch validation to most of a minute.

type ValidationResult added in v1.12.0

type ValidationResult struct {
	OrgID                string
	DerivedWorkflowOwner string
}

ValidationResult holds the data returned by credential validation.

type Validator

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

Validator validates authentication credentials

func NewValidator

func NewValidator(creds *credentials.Credentials, environmentSet *environments.EnvironmentSet, log *zerolog.Logger) *Validator

NewValidator creates a new credential validator

func (*Validator) CreateServiceContextWithTimeout added in v1.17.0

func (v *Validator) CreateServiceContextWithTimeout(parent context.Context) (context.Context, context.CancelFunc)

func (*Validator) SetRetryNotifier added in v1.40.0

func (v *Validator) SetRetryNotifier(fn RetryNotifier)

func (*Validator) SetServiceTimeout added in v1.17.0

func (v *Validator) SetServiceTimeout(timeout time.Duration)

func (*Validator) ValidateCredentials

func (v *Validator) ValidateCredentials(validationCtx context.Context, creds *credentials.Credentials) (*ValidationResult, error)

ValidateCredentials validates the provided credentials by making a lightweight GraphQL query and returns organization info including the derived workflow owner. The GraphQL client automatically handles token refresh if needed.

Jump to

Keyboard shortcuts

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