Skip to content

Commit 6756dd4

Browse files
committed
Add comments
1 parent 9813cfd commit 6756dd4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

credentials/credentials.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ func NewStaticCredentials(
3636
}
3737

3838
// NewOauth2TokenExchangeCredentials makes OAuth 2.0 token exchange protocol credentials object
39+
// https://www.rfc-editor.org/rfc/rfc8693
3940
func NewOauth2TokenExchangeCredentials(
4041
opts ...credentials.Oauth2TokenExchangeCredentialsOption,
4142
) (Credentials, error) {

options.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ func WithAccessTokenCredentials(accessToken string) Option {
5454
)
5555
}
5656

57+
// WithOauth2TokenExchangeCredentials adds credentials that can exchange token using
58+
// OAuth 2.0 token exchange protocol:
59+
// https://www.rfc-editor.org/rfc/rfc8693
5760
func WithOauth2TokenExchangeCredentials(
5861
opts ...credentials.Oauth2TokenExchangeCredentialsOption,
5962
) Option {

0 commit comments

Comments
 (0)