mirror of
https://gitlab.durp.info/durfy/apps/durpcli.git
synced 2026-05-07 16:00:35 -05:00
update
This commit is contained in:
parent
d96fae1276
commit
125e0dc9cf
9 changed files with 167 additions and 83 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue