Update photon controller go SDK in vendor code.
This commit is contained in:
3
vendor/github.com/vmware/photon-controller-go-sdk/photon/lightwave/oidcclient.go
generated
vendored
3
vendor/github.com/vmware/photon-controller-go-sdk/photon/lightwave/oidcclient.go
generated
vendored
@@ -18,6 +18,7 @@ import (
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@@ -168,6 +169,8 @@ type OIDCTokenResponse struct {
|
||||
}
|
||||
|
||||
func (client *OIDCClient) GetTokenByPasswordGrant(username string, password string) (tokens *OIDCTokenResponse, err error) {
|
||||
username = url.QueryEscape(username)
|
||||
password = url.QueryEscape(password)
|
||||
body := fmt.Sprintf(passwordGrantFormatString, username, password, client.Options.TokenScope)
|
||||
return client.getToken(body)
|
||||
}
|
||||
|
Reference in New Issue
Block a user