scopes
This commit is contained in:
parent
960be5af1f
commit
4b426c899a
2 changed files with 28 additions and 7 deletions
|
@ -11,13 +11,16 @@ const (
|
|||
)
|
||||
|
||||
type keyFile struct {
|
||||
Type string `json:"type"` // serviceaccount or application
|
||||
KeyID string `json:"keyId"`
|
||||
Key string `json:"key"`
|
||||
Issuer string `json:"issuer"`
|
||||
Type string `json:"type"` // serviceaccount or application
|
||||
KeyID string `json:"keyId"`
|
||||
Key string `json:"key"`
|
||||
Issuer string `json:"issuer"`
|
||||
|
||||
//serviceaccount
|
||||
UserID string `json:"userId"`
|
||||
|
||||
//application
|
||||
ClientID string `json:"clientId"`
|
||||
//TokenURL string `json:"token_uri"`
|
||||
//ProjectID string `json:"project_id"`
|
||||
}
|
||||
|
||||
func ConfigFromKeyFile(path string) (*keyFile, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue