Skip to content

Commit

Permalink
all: make method and struct comments match the names
Browse files Browse the repository at this point in the history
Change-Id: I9fd025393acc12da59fdac1c416563324cd26af1
Reviewed-on: https://go-review.googlesource.com/c/oauth2/+/639695
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
  • Loading branch information
cuishuang authored and gopherbot committed Jan 4, 2025
1 parent 22134a4 commit 49a531d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion clientcredentials/clientcredentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type Config struct {
// URL. This is a constant specific to each server.
TokenURL string

// Scope specifies optional requested permissions.
// Scopes specifies optional requested permissions.
Scopes []string

// EndpointParams specifies additional parameters for requests to the token endpoint.
Expand Down
2 changes: 1 addition & 1 deletion google/externalaccount/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

// AwsSecurityCredentials models AWS security credentials.
type AwsSecurityCredentials struct {
// AccessKeyId is the AWS Access Key ID - Required.
// AccessKeyID is the AWS Access Key ID - Required.
AccessKeyID string `json:"AccessKeyID"`
// SecretAccessKey is the AWS Secret Access Key - Required.
SecretAccessKey string `json:"SecretAccessKey"`
Expand Down
2 changes: 1 addition & 1 deletion google/externalaccount/basecredentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ type SubjectTokenSupplier interface {
type AwsSecurityCredentialsSupplier interface {
// AwsRegion should return the AWS region or an error.
AwsRegion(ctx context.Context, options SupplierOptions) (string, error)
// GetAwsSecurityCredentials should return a valid set of AwsSecurityCredentials or an error.
// AwsSecurityCredentials should return a valid set of AwsSecurityCredentials or an error.
// The external account token source does not cache the returned security credentials, so caching
// logic should be implemented in the supplier to prevent multiple requests for the same security credentials.
AwsSecurityCredentials(ctx context.Context, options SupplierOptions) (*AwsSecurityCredentials, error)
Expand Down
2 changes: 1 addition & 1 deletion oauth2.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type Config struct {
// the OAuth flow, after the resource owner's URLs.
RedirectURL string

// Scope specifies optional requested permissions.
// Scopes specifies optional requested permissions.
Scopes []string

// authStyleCache caches which auth style to use when Endpoint.AuthStyle is
Expand Down

0 comments on commit 49a531d

Please sign in to comment.