auth

package
v1.261119.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 20 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 NewAuthCommand

func NewAuthCommand(d *shared.Deps) *ffcli.Command

Auth command factory

func NewAuthDoctorCommand

func NewAuthDoctorCommand(d *shared.Deps) *ffcli.Command

AuthDoctor command factory

func NewPermissionWarning

func NewPermissionWarning(err error) error

NewPermissionWarning builds a permission warning error for tests.

func SetKeychainAvailable added in v1.260825.0

func SetKeychainAvailable(fn func() (bool, error)) func()

SetKeychainAvailable replaces the keychain availability hook for tests. It returns a restore function to reset the previous handler.

func SetListCredentialSummaries

func SetListCredentialSummaries(fn func() ([]authsvc.Credential, error)) func()

SetListCredentialSummaries replaces the metadata-only credential listing hook for tests. It returns a restore function to reset the previous handler.

func SetListStoredCredentials

func SetListStoredCredentials(fn func() ([]authsvc.Credential, error)) func()

SetListStoredCredentials replaces the full credential listing hook for tests. It returns a restore function to reset the previous handler.

func SetLoginJWTGenerator

func SetLoginJWTGenerator(fn func(string, string, *ecdsa.PrivateKey) (string, error)) func()

SetLoginJWTGenerator replaces the JWT generator for tests. It returns a restore function to reset the previous handler.

func SetLogoutCredentialRemovers added in v1.260825.0

func SetLogoutCredentialRemovers(remove func(string, authsvc.RemoveOptions) error, removeAll func(authsvc.RemoveOptions) error) func()

SetLogoutCredentialRemovers replaces the credential removal hooks for tests. It returns a restore function to reset the previous handlers.

func SetMigrateKeychainToConfig added in v1.260610.0

func SetMigrateKeychainToConfig(fn func(authsvc.MigrateKeychainToConfigOptions) (authsvc.MigrateKeychainToConfigResult, error)) func()

SetMigrateKeychainToConfig replaces the keychain-to-config migration hook for tests. It returns a restore function to reset the previous handler.

func SetStatusValidateCredential

func SetStatusValidateCredential(fn func(context.Context, authsvc.Credential) error) func()

SetStatusValidateCredential replaces the validation hook for tests. It returns a restore function to reset the previous handler.

Types

This section is empty.

Jump to

Keyboard shortcuts

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