Documentation
¶
Index ¶
- func AppURLForAPIBaseURL(baseURL string) (string, error)
- func ExistingToken(ctx context.Context, baseURL string) (string, error)
- func Logout(appURL string) (bool, error)
- func StoredTokenValid(ctx context.Context, appURL string) (bool, error)
- func Token(ctx context.Context, baseURL string, noExpiration, forceRefresh bool) (string, error)
- func WithNonInteractive(ctx context.Context) context.Context
- func WithOutputWriter(ctx context.Context, w io.Writer) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppURLForAPIBaseURL ¶ added in v0.22.0
AppURLForAPIBaseURL returns the app URL that owns credentials for an API base URL.
func Logout ¶ added in v0.22.0
Logout removes the keyring token for appURL. It returns false when no token was stored for the URL.
func StoredTokenValid ¶ added in v0.22.0
StoredTokenValid reports whether a stored token for appURL authenticates successfully. It never initiates login or prompts for user input.
func WithNonInteractive ¶ added in v0.22.0
WithNonInteractive marks ctx as safe for GUI orchestration: token acquisition must not prompt or read from stdin.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.