Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
UgnineSirdis committed Apr 11, 2024
1 parent 9813cfd commit 6756dd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions credentials/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func NewStaticCredentials(
}

// NewOauth2TokenExchangeCredentials makes OAuth 2.0 token exchange protocol credentials object
// https://www.rfc-editor.org/rfc/rfc8693
func NewOauth2TokenExchangeCredentials(
opts ...credentials.Oauth2TokenExchangeCredentialsOption,
) (Credentials, error) {
Expand Down
3 changes: 3 additions & 0 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ func WithAccessTokenCredentials(accessToken string) Option {
)
}

// WithOauth2TokenExchangeCredentials adds credentials that can exchange token using
// OAuth 2.0 token exchange protocol:
// https://www.rfc-editor.org/rfc/rfc8693
func WithOauth2TokenExchangeCredentials(
opts ...credentials.Oauth2TokenExchangeCredentialsOption,
) Option {
Expand Down

0 comments on commit 6756dd4

Please sign in to comment.