This commit is contained in:
2024-06-23 16:27:55 -05:00
parent d96fae1276
commit 125e0dc9cf
9 changed files with 167 additions and 83 deletions

View File

@@ -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",