auth

package
v0.0.0-...-5ee9e10 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const InvalidNoPromptFlags = "Invalid arguments, both --ticket and --challenge flag values are required"

Variables

This section is empty.

Functions

func List

func List(ctx context.Context, clients *shared.ClientFactory) ([]types.SlackAuth, error)

List returns a list of the authenticated Slack accounts.

func Login

func Login(ctx context.Context, apiClient api.APIInterface, authClient auth.AuthInterface, config *config.Config, io iostreams.IOStreamer, userToken string, noRotation bool) (auth types.SlackAuth, credentialsPath string, err error)

Login takes the user through the Slack CLI login process

func LoginNoPrompt

func LoginNoPrompt(ctx context.Context, clients *shared.ClientFactory, ticketArg string, challengeCodeArg string, noRotation bool) (auth types.SlackAuth, credentialsPath string, err error)

LoginNoPrompt initiates a login flow with no prompts

func LoginWithClients

func LoginWithClients(ctx context.Context, clients *shared.ClientFactory, userToken string, noRotation bool) (auth types.SlackAuth, credentialsPath string, err error)

LoginWithClients ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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