omniauth-bolt 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/strategies/bolt.rb +6 -5
- data/lib/omniauth-bolt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4529ee85e4f9c2c045ecdd0fbe5cb56895788d4876e67d390b00a22921e86a91
|
4
|
+
data.tar.gz: 2fa83ab5d2202789ae8e42a732f9aeee6d150b5d6a24dd4f1029847fc1165707
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17265f7ff49d6430b999aae29ff8a1bcaa253c1921ae88624240093f8cf2634c012f0cae51d091f226be3af1ae4cb4d6759fa9396769e5ea78de0e8ff9e3db37
|
7
|
+
data.tar.gz: 8464b1c1b71eb8973171199305f1c5b5d6ff838235c188740693faac724eb22b167e9f4d83ddd0e0801ba41405accdd92b89f17a6461b2becd3a1ed7d95be325
|
@@ -30,20 +30,21 @@ module OmniAuth
|
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
33
|
-
def
|
34
|
-
|
35
|
-
|
33
|
+
def query_string
|
34
|
+
"?authorization_code=#{request.params['code']}&scope=#{request.params['scope']}&state=#{request.params['state']}"
|
35
|
+
end
|
36
36
|
|
37
|
+
def request_phase
|
37
38
|
redirect callback_url
|
38
39
|
end
|
39
40
|
|
40
41
|
def callback_phase
|
41
42
|
payload = {
|
42
43
|
grant_type: 'authorization_code',
|
43
|
-
code:
|
44
|
+
code: request.params['authorization_code'],
|
44
45
|
client_id: options['publishable_key'],
|
45
46
|
# scope: 'openid+bolt.account.manage',
|
46
|
-
scope:
|
47
|
+
scope: request.params['scope'],
|
47
48
|
client_secret: options['api_key']
|
48
49
|
}
|
49
50
|
|
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.
|
4
|
+
version: 0.2.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-
|
11
|
+
date: 2022-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-oauth
|