oauth2/google: fixed comment formatting and clarified naming

This commit is contained in:
Patrick Jones 2020-10-27 11:58:39 -07:00
parent f46c65f948
commit 6513477b5b
3 changed files with 3 additions and 5 deletions

View File

@ -9,7 +9,7 @@ import (
// ClientAuthentication represents an OAuth client ID and secret and the mechanism for passing these credentials as stated in rfc6749#2.3.1.
type ClientAuthentication struct {
//AuthStyle can be either basic or request-body
// AuthStyle can be either basic or request-body
AuthStyle oauth2.AuthStyle
ClientID string
ClientSecret string
@ -34,6 +34,4 @@ func (c *ClientAuthentication) InjectAuthentication(values url.Values, headers h
values.Set("client_id", c.ClientID)
values.Set("client_secret", c.ClientSecret)
}
return
}

View File

@ -2,7 +2,7 @@ package externalaccount
import "fmt"
//Error for handling OAuth related error responses as stated in rfc6749#5.2.
// Error for handling OAuth related error responses as stated in rfc6749#5.2.
type Error struct {
Code string
URI string

View File

@ -2,7 +2,7 @@ package externalaccount
import "testing"
func TestError_Generator(t *testing.T) {
func TestError(t *testing.T) {
e := Error{
"42",
"http:thisIsAPlaceholder",