Documentation
¶
Index ¶
Constants ¶
View Source
const WeGOGithubClientID = "edcb13588d46f254052c"
Uniquely identifies us as a GitHub app. This does not need to be obfuscated because it is publicly available to anyone who does an OAuth request via wego. See the auth ADR for more details: https://github.com/weaveworks/weave-gitops/blob/main/doc/adr/0005-wego-core-auth-strategy.md#design
Variables ¶
View Source
var ErrAuthPending = errors.New("auth pending")
Functions ¶
This section is empty.
Types ¶
type AuthProvider ¶
type BlockingCLIAuthHandler ¶
BlockingCLIAuthHandler takes over the terminal experience and returns a token when the user completes the flow.
func NewAuthProvider ¶
func NewAuthProvider(name gitproviders.GitProviderName) (BlockingCLIAuthHandler, error)
func NewGithubDeviceFlowHandler ¶
func NewGithubDeviceFlowHandler(client *http.Client) BlockingCLIAuthHandler
NewGithubDeviceFlowHandler returns a function which will initiate the Github Device Flow for the CLI.
Click to show internal directories.
Click to hide internal directories.