All Versions
Latest Version
Avg Release Cycle
73 days
Latest Release
823 days ago

Changelog History
Page 2

  • v0.8.1 Changes

    November 18, 2016

    ๐Ÿ‘Œ Improvements

    • โž• Added the ability to debug responses from the provider.

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  Fixed regression in handling text/plain content-type for tokens in #74
  • v0.8.0 Changes

    October 05, 2016

    ๐Ÿ‘Œ Improvements

    • โž• Added OAuth2.Client.basic_auth/1 convenience function.

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  Fixed broken RefreshToken strategy reported in #66
    • ๐Ÿ›  Fixed an issue where checking the content-type was defaulting to application/json causing Poison to explode.
  • v0.7.0 Changes

    August 16, 2016

    ๐Ÿ‘Œ Improvements

    • โž• Add support for custom serializers based on MIME types.
    • โœ‚ Remove dependency on HTTPoison in favor of using hackney directly.
    • โœ‚ Remove dependency on mimetype_parser.
    • โœ… Poison is now only a test dependency.

    ๐Ÿ› Bug Fixes

    • ๐Ÿ“œ expires_in values that are returned as strings are now properly parsed into integers for expires_at.

    Backward Incompatible Changes

    Prior to version v0.7.0 OAuth2.Client was primarily used for the purpose of interfacing with the OAuth server to retrieve a token. OAuth2.Token was then responsible for using that token to make authenticated requests.

    โ™ป๏ธ In v0.7.0 this interface has been refactored so that an OAuth2.Client struct now references an OAuth2.Token directly and many of the action methods have ๐Ÿšš been moved so that they are called on OAuth2.Client, with an instance of the client struct as their first argument.

    Please consult the README for an example of general usage to retrieve a token and make a request.

    ๐Ÿšš The following methods have been moved and adjusted so that they take a OAuth2.Client.t which contains a token, rather than a token directly:

    • OAuth2.AccessToken.get -> OAuth2.Client.get
    • OAuth2.AccessToken.get! -> OAuth2.Client.get!
    • OAuth2.AccessToken.put -> OAuth2.Client.put
    • OAuth2.AccessToken.put! -> OAuth2.Client.put!
    • OAuth2.AccessToken.patch -> OAuth2.Client.patch
    • OAuth2.AccessToken.patch! -> OAuth2.Client.patch!
    • ->
    •! ->!
    • OAuth2.AccessToken.delete -> OAuth2.Client.delete
    • OAuth2.AccessToken.delete! -> OAuth2.Client.delete!
    • OAuth2.AccessToken.refresh -> OAuth2.Client.refresh_token
    • OAuth2.AccessToken.refresh! -> OAuth2.Client.refresh_token!

    โž• Additionally, the following methods have been moved to OAuth2.Request

    • OAuth2.AccessToken.request -> OAuth2.Request.request
    • OAuth2.AccessToken.request! -> OAuth2.Request.request!


  • v0.6.0 Changes

    June 24, 2016

    ๐Ÿ‘Œ Improvements

    • ๐Ÿ‘‰ Use Poison ~> 2.0
    • Reset client headers after fetching the token

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  Fix up auth code flow to match the RFC


  • v0.5.0 Changes

    November 03, 2015

    ๐Ÿ‘Œ Improvements

    • You can now request a refresh token with OAuth2.AccessToken.refresh. The ! alternative is also available.
    • โž• Added Bypass for improved testability.
    • โœ… Plug is no longer a direct dependency. It is only included as a test dependency through the Bypass library.
    • ๐Ÿ‘ OAuth2.AccessToken now supports DELETE requests with delete and delete!
    • โœ… More tests!

    ๐Ÿ› Bug Fixes

    • Params are no longer sent in both the body and as a query string for POST requests with OAuth2.Client.get_token
    • ๐Ÿ“œ Responses will no longer be parsed automatically if the content-type is not supported by this lib. Registering custom parsers is a future goal for this library.
    • Errors are now properly raised when they occur.

    Backwards Incompatible Changes

    • ๐Ÿšš has been removed. Use instead.


  • v0.4.0 Changes

    October 27, 2015

    โž• Additions/Improvements

    • ๐Ÿ‘ OAuth2.AccessToken now supports: post, post!, put, put!, patch, and patch!.
    • ๐Ÿ‘ Better documentation
    • โœ… Test coverage improved

    ๐Ÿ› Bug fixes

    • Empty response bodies are no longer decoded

    ๐Ÿ’ฅ Breaking changes

    • ๐Ÿ“œ OAuth2.AccessToken.get!/4 now returns OAuth2.Response{} instead of just the parsed body.


    Thanks to @meatherly, @dejanstrbac, and @optikfluffel for their contributions!


  • v0.3.0 Changes

    August 19, 2015

    โฌ†๏ธ Bump Plug dependency to 1.0.


  • v0.2.0 Changes

    July 13, 2015
    • was replaced with :os.timestamp for compatibility with Erlang 18
    • You can now pass options to the HTTPoison library with OAuth2.Client.get_token/4 and OAuth2.Client.get_token!/4


  • v0.1.1 Changes

    April 18, 2015
    • โœ‚ Remove compilation warnings.
    • ๐Ÿ›  Fix request_body function for ClientCredentials


  • v0.1.0 Changes

    April 14, 2015

    ๐Ÿ“š This release bring breaking changes and more documentation.

    ๐Ÿ‘€ Please see the README or Hex Docs for more details.