GO-2022-0350: Code injection in Stripe CLI on windows in github.com/stripe/stripe-cli
package
Version:
v0.5.1
Opens a new window with list of versions in this module.
Published: Aug 16, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 20
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
InteractiveLogin lets the user set configuration on the command line
Login function is used to obtain credentials via stripe dashboard.
SuccessMessage returns the display message for a successfully authenticated user
type Account struct {
ID string `json:"id"`
Settings Settings `json:"settings"`
}
Account is the most outer layer of the json response from Stripe
PollForKey polls Stripe at the specified interval until either the API key is available or we've reached the max attempts.
type Dashboard struct {
DisplayName string `json:"display_name"`
}
Dashboard is within the Settings json response from Stripe
type Links struct {
BrowserURL string `json:"browser_url"`
PollURL string `json:"poll_url"`
VerificationCode string `json:"verification_code"`
}
Links provides the URLs for the CLI to continue the login flow
type Settings struct {
Dashboard Dashboard `json:"dashboard"`
}
Settings is within the Account json response from Stripe
Source Files
¶
Click to show internal directories.
Click to hide internal directories.