auth

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLegacyCredentials added in v0.9.0

func CheckLegacyCredentials(_ context.Context, fs afero.Fs, configDir string) setup.CheckResult

CheckLegacyCredentials reports credentials still sitting in the general user config, and names the command that moves them (spec 0042 §3.4).

Distinct from GTB's own credential check, which scans a closed list of ITS keys and knows nothing about platforms.* — see CheckProjectCredentials.

func CheckLegacyThemes added in v0.9.0

func CheckLegacyThemes(_ context.Context, fs afero.Fs, configDir string) setup.CheckResult

CheckLegacyThemes reports a theme catalog still living in the legacy user config, and names the command that moves it (spec 0042 §3.6, 0046 Q3).

Migration is explicit, so something has to say it is available — otherwise the split is a change nobody knows to complete, and the legacy file quietly stays the real home forever.

func CheckProjectCredentials added in v0.9.0

func CheckProjectCredentials(_ context.Context, fs afero.Fs, dir string) setup.CheckResult

CheckProjectCredentials reports literal credentials in dir's .keryx.yaml — the file a project commits. Exported for its unit test and so the studio can reuse it.

func NewCmdAuth

func NewCmdAuth(props *props.Props) *setup.Command

func RunAuth

func RunAuth(ctx context.Context, props *props.Props, opts *AuthOptions, args []string) error

RunAuth runs a platform's interactive OAuth flow and persists its token:

keryx auth <platform>

Instagram is the first platform; others land with their adapters.

Types

type AuthOptions

type AuthOptions struct {
	Redirect string
	Code     string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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