Skip to content

Commit 7f73c4d

Browse files
authored
Merge pull request #31 from jeppeliisberg/oauth2-v2
Update omniauth-oauth2 to support Oauth2 v2
2 parents 0f6e76f + 95613b0 commit 7f73c4d

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)