forked from remote/oauth2
Added documentation for external account integration.
Change-Id: I30610b306ea5a8c1d7e1fc3e6f151a4449345331
This commit is contained in:
@@ -19,6 +19,9 @@ type clientAuthentication struct {
|
||||
ClientSecret string
|
||||
}
|
||||
|
||||
// InjectAuthentication is simply used to add authentication to a Secure Token Service exchange
|
||||
// request. It modifies either the passed url.Values or http.Header depending on the desired
|
||||
// authentication format.
|
||||
func (c *clientAuthentication) InjectAuthentication(values url.Values, headers http.Header) {
|
||||
if c.ClientID == "" || c.ClientSecret == "" || values == nil || headers == nil {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user