diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c6e5a4..8ea6548 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,11 @@ # Changelog -## Unreleased +## v2.0.0 (2019-07-15) -### Bug Fixes +### Bug fixes (possibly backwards incompatible) - Ensure that the OAuth client is authenticated via Authorization header as - described in the spec (#131) + described in the spec (#131). ## v1.0.1 (2019-04-12) diff --git a/README.md b/README.md index 31b7508..25cd061 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ end defp deps do # Add the dependency - [{:oauth2, "~> 1.0"}] + [{:oauth2, "~> 2.0"}] end ``` @@ -170,7 +170,6 @@ defmodule GitHub do def get_token(client, params, headers) do client - |> put_param(:client_secret, client.client_secret) |> put_header("accept", "application/json") |> OAuth2.Strategy.AuthCode.get_token(params, headers) end diff --git a/mix.exs b/mix.exs index b7c9dba..b6e76e8 100644 --- a/mix.exs +++ b/mix.exs @@ -1,7 +1,7 @@ defmodule OAuth2.Mixfile do use Mix.Project - @version "1.0.1" + @version "2.0.0" def project do [