Skip to content

Commit 35fc3d5

Browse files
authored
Update auth_scheme to oauth2 v1 defaults per v2 breaking changes (#341)
* Update auth_scheme to oauth2 v1 defaults per v2 breaking changes * Update CHANGELOG.md
1 parent b747516 commit 35fc3d5

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
## HEAD
33

44
* Raise ArgumentError when calling change_password! with blank password [#333](https://github.com/Sorcery/sorcery/pull/333)
5+
* Update auth_scheme to oauth2 v1 defaults per v2 breaking changes [#341](https://github.com/Sorcery/sorcery/pull/341)
56

67
## 0.16.4
78

lib/sorcery/protocols/oauth2.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def get_access_token(args, options = {})
3232
def build_client(options = {})
3333
defaults = {
3434
site: @site,
35+
auth_scheme: :request_body,
3536
ssl: { ca_file: Sorcery::Controller::Config.ca_file }
3637
}
3738
::OAuth2::Client.new(

0 commit comments

Comments
 (0)