Skip to content

Commit 95613b0

Browse files
committed
Update omniauth-oauth2 to support Oauth2 v2
Address the EOL of Oauth2 version 1.4.10: ``` Post-install message from oauth2: You have installed oauth2 version 1.4.10, which is EOL. No further support is anticipated for the 1.4.x series. OAuth2 version 2 is released. There are BREAKING changes, but most will not encounter them, and upgrading should be easy! Please see: • https://github.com/oauth-xx/oauth2#what-is-new-for-v20https://github.com/oauth-xx/oauth2/blob/master/CHANGELOG.md Please upgrade, report issues, and support the project! Thanks, |7eter l-|. l3oling ```
1 parent 0f6e76f commit 95613b0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module OmniAuth
22
module MicrosoftGraph
3-
VERSION = "1.1.0"
3+
VERSION = "1.2.0"
44
end
55
end

omniauth-microsoft_graph.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
1919
spec.require_paths = ["lib"]
2020

2121
spec.add_runtime_dependency 'omniauth', '~> 2.0'
22-
spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.7.1'
22+
spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.8.0'
2323
spec.add_development_dependency "sinatra", '~> 0'
2424
spec.add_development_dependency "rake", '~> 12.3.3', '>= 12.3.3'
2525
spec.add_development_dependency 'rspec', '~> 3.6'

spec/omniauth/strategies/microsoft_graph_oauth2_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@
267267
end
268268
end
269269
end
270-
let(:access_token) { OAuth2::AccessToken.from_hash(client, {}) }
270+
let(:access_token) { OAuth2::AccessToken.from_hash(client, { 'access_token' => 'a' }) }
271271
before { allow(subject).to receive(:access_token).and_return(access_token) }
272272

273273
context 'with verified email' do
@@ -291,7 +291,7 @@
291291
end
292292
end
293293
end
294-
let(:access_token) { OAuth2::AccessToken.from_hash(client, {}) }
294+
let(:access_token) { OAuth2::AccessToken.from_hash(client, { 'access_token' => 'a' }) }
295295

296296
before { allow(subject).to receive(:access_token).and_return(access_token) }
297297

0 commit comments

Comments
 (0)