File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff 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
3940func NewOauth2TokenExchangeCredentials (
4041 opts ... credentials.Oauth2TokenExchangeCredentialsOption ,
4142) (Credentials , error ) {
Original file line number Diff line number Diff 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
5760func WithOauth2TokenExchangeCredentials (
5861 opts ... credentials.Oauth2TokenExchangeCredentialsOption ,
5962) Option {
You can’t perform that action at this time.
0 commit comments