Added documentation for external account integration.

Change-Id: I30610b306ea5a8c1d7e1fc3e6f151a4449345331
This commit is contained in:
Patrick Jones
2021-03-14 19:28:07 -07:00
parent 9bb904979d
commit da817920f0
4 changed files with 40 additions and 6 deletions

View File

@@ -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