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 ¶
NewLoginCommand returns a cobra command for `login` subcommands
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.