update
This commit is contained in:
@@ -4,6 +4,22 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
type accessTokenResponse struct {
|
||||
AccessToken string `json:"access_token"`
|
||||
TokenType string `json:"token_type"`
|
||||
ExpiresIn int `json:"expires_in"`
|
||||
IDToken string `json:"id_token"`
|
||||
}
|
||||
|
||||
var (
|
||||
clientID string
|
||||
grantType string
|
||||
url string
|
||||
username string
|
||||
password string
|
||||
scope string
|
||||
)
|
||||
|
||||
var AuthCmd = &cobra.Command{
|
||||
Use: "auth",
|
||||
Short: "All things Authorization",
|
||||
|
||||
Reference in New Issue
Block a user