Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValidationResult ¶ added in v1.12.0
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) 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.
Click to show internal directories.
Click to hide internal directories.