omniauth-bolt 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4529ee85e4f9c2c045ecdd0fbe5cb56895788d4876e67d390b00a22921e86a91
4
- data.tar.gz: 2fa83ab5d2202789ae8e42a732f9aeee6d150b5d6a24dd4f1029847fc1165707
3
+ metadata.gz: 8c04af3a73534c52b17d5aec1c415b9cd7fed4f48f0bc8a2998352b0f2caec7d
4
+ data.tar.gz: 5f4603ca5b9c1280781ae163bed7c0e4a45c1b3bdb11a13f099617261cbd41fd
5
5
  SHA512:
6
- metadata.gz: 17265f7ff49d6430b999aae29ff8a1bcaa253c1921ae88624240093f8cf2634c012f0cae51d091f226be3af1ae4cb4d6759fa9396769e5ea78de0e8ff9e3db37
7
- data.tar.gz: 8464b1c1b71eb8973171199305f1c5b5d6ff838235c188740693faac724eb22b167e9f4d83ddd0e0801ba41405accdd92b89f17a6461b2becd3a1ed7d95be325
6
+ metadata.gz: 4dd087adebaf81428676f982bd2e6376e04578b5747d0e3ee5661639709e8b6da40d2dce44656b3fe6c4d32764be88a6add13e751affbb6696a15f71786dfbed
7
+ data.tar.gz: 58b2aafe0671c21b2a17e8823dec526d457f0319aa93c557ae40dcc4e94a92971d87e03ed4f17428a571d75283f17d9aa602eb1fd8bfe1d990ee3acec1529bc9
@@ -31,7 +31,8 @@ module OmniAuth
31
31
  end
32
32
 
33
33
  def query_string
34
- "?authorization_code=#{request.params['code']}&scope=#{request.params['scope']}&state=#{request.params['state']}"
34
+ authorization_code = request.params['code'] || request.params['authorization_code']
35
+ "?authorization_code=#{authorization_code}&scope=#{request.params['scope']}&state=#{request.params['state']}"
35
36
  end
36
37
 
37
38
  def request_phase
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Bolt
5
- VERSION = '0.2.0'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-bolt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniele Palombo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-07 00:00:00.000000000 Z
11
+ date: 2022-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth