login

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OAuth2ServerFlag is the viper flag for the OAuth 2.0 authorization server.
	OAuth2ServerFlag = "oauth2-server"

	// OAuth2ClientIDFlag is the viper flag for the OAuth 2.0 client ID.
	OAuth2ClientIDFlag = "oauth2-client-id"

	// DefaultOAuth2Server is the default OAuth 2.0 authorization server.
	DefaultOAuth2Server = "http://localhost:8080"

	// DefaultClientID is the default OAuth 2.0 client ID for the CLI.
	DefaultClientID = "cli"

	// DefaultCallbackServerAddress is the default address for the callback server.
	DefaultCallbackServerAddress = "localhost:10000"
)

Variables

View Source
var (
	// DefaultCallback is the default callback URL of the callback server.
	DefaultCallback = fmt.Sprintf("http://%s/callback", DefaultCallbackServerAddress)

	// VerifierGenerator is a function that generates a new verifier.
	VerifierGenerator = oauth2.GenerateSecret
)

Functions

func NewLoginCommand

func NewLoginCommand() *cobra.Command

NewLoginCommand returns a cobra command for `login` subcommands

Types

This section is empty.

Jump to

Keyboard shortcuts

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