Skip to content

Commit 0f800c3

Browse files
authored
Merge pull request #10 from scottillogical/add-oidc-auth
add OIDC auth
2 parents 549dfe0 + 5bf17b4 commit 0f800c3

File tree

5 files changed

+310
-10
lines changed

5 files changed

+310
-10
lines changed

auth.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ type AuthOutput struct {
3333

3434
type authOutputRaw struct {
3535
Renewable bool `json:"renewable"`
36+
Data map[string]interface{} `json:"data"`
3637
LeaseDuration int `json:"lease_duration"`
3738
Auth struct {
3839
ClientToken string `json:"client_token"`

client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//Package vaultkv provides a client with functions that make API calls that a user of
1+
// Package vaultkv provides a client with functions that make API calls that a user of
22
// Vault may commonly want.
33
package vaultkv
44

@@ -139,6 +139,7 @@ func (v *Client) Curl(method string, path string, urlQuery url.Values, body io.R
139139

140140
resp, err := client.Do(req)
141141
if err != nil {
142+
fmt.Println("transport err", err.Error())
142143
return nil, &ErrTransport{message: err.Error()}
143144
}
144145

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ module github.com/cloudfoundry-community/vaultkv
33
go 1.15
44

55
require (
6+
github.com/hashicorp/cap v0.5.0
7+
github.com/hashicorp/go-secure-stdlib/base62 v0.1.2
68
github.com/onsi/ginkgo v1.16.5
79
github.com/onsi/gomega v1.10.1
8-
golang.org/x/net v0.7.0 // indirect
910
)

0 commit comments

Comments
 (0)