Skip to content

Releases: dghubble/oauth1

v0.7.3

26 Feb 00:53
v0.7.3
Compare
Choose a tag to compare

Changes

  • Percent encode special characters in HMAC-SHA1 secrets (#72)
  • Strip whitespace from request token body (#56)
  • Update Go module dependencies

Contributions

Dependencies

  • Bump github.com/stretchr/testify from 1.8.1 to 1.8.2 by @dependabot in #67
  • Bump github.com/stretchr/testify from 1.8.2 to 1.8.3 by @dependabot in #70
  • Bump github.com/stretchr/testify from 1.8.3 to 1.8.4 by @dependabot in #71

New Contributors

Full Changelog: v0.7.2...v0.7.3

v0.7.2

07 Dec 16:55
v0.7.2
Compare
Choose a tag to compare
  • Update minimum Go version from v1.17 to v1.18 (#66)

v0.7.1

12 Jan 16:46
v0.7.1
Compare
Choose a tag to compare
  • Show body when RequestToken or AccessToken requests return an invalid status code (#54)

v0.7.0

14 Jan 05:32
v0.7.0
Compare
Choose a tag to compare
  • Add an HMAC256Signer (#40)
  • Add discogs Endpoint (#39)
  • Allow custom Noncer for unusual OAuth1 providers (#45
  • Change tumblr Endpoint URLs to https (#37)

v0.6.0

11 Jul 03:45
v0.6.0
Compare
Choose a tag to compare
  • Add Go module support (#32)

v0.5.0

18 Nov 07:12
v0.5.0
Compare
Choose a tag to compare
  • Use standard library context (c0a405)
    • Requires Go 1.7+
  • Add xing package with a provider Endpoint (#10)
  • Add status code checks so server errors are clearer (09fded)
  • Move confirmed check after token check so errors are clearer (#8)

v0.4.0

20 Apr 07:04
v0.4.0
Compare
Choose a tag to compare
  • Add a Signer field to the Config to allow custom Signer implementations.
  • Use the HMACSigner by default. This provides the same signing behavior as in previous versions (HMAC-SHA1).
  • Add an RSASigner for "RSA-SHA1" OAuth1 Providers.
  • Add missing Authorization Header quotes around OAuth parameter values. Many providers allowed these quotes to be missing.
  • Change Signer to be a signer interface.
  • Remove the old Signer methods SetAccessTokenAuthHeader, SetRequestAuthHeader, and SetRequestTokenAuthHeader.

v0.3.0

20 Apr 07:03
v0.3.0
Compare
Choose a tag to compare
  • Added NoContext which may be used in most cases.
  • Allowed Transport Base http.RoundTripper to be set through a ctx.
  • Changed NewClient to require a context.Context.
  • Changed Config.Client to require a context.Context.

v0.2.0

13 Sep 21:17
Compare
Choose a tag to compare
  • Improved OAuth 1 spec compliance and test coverage.
  • Added func StaticTokenSource(*Token) TokenSource
  • Added ParseAuthorizationCallback function. Removed Config.HandleAuthorizationCallback method.
  • Changed Config method signatures to allow an interface to be defined for the OAuth1 authorization flow. Gives users of this package (and downstream packages) the freedom to use other implementations if they wish.
  • Removed RequestToken in favor of passing token and secret value strings.
  • Removed ReuseTokenSource struct, it was effectively a static source. Replaced by StaticTokenSource.

v0.1.0

13 Sep 21:16
Compare
Choose a tag to compare
  • Initial OAuth1 support for obtaining authorization and making authorized requests.