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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 510d07673008d52cf606747b16811930aec9549c0c4fa4c803a85658cf570598
4
- data.tar.gz: a52f51df78199dba7ac9bd1c0842f422d658071e949102e1c8591a09472c10a1
3
+ metadata.gz: 4529ee85e4f9c2c045ecdd0fbe5cb56895788d4876e67d390b00a22921e86a91
4
+ data.tar.gz: 2fa83ab5d2202789ae8e42a732f9aeee6d150b5d6a24dd4f1029847fc1165707
5
5
  SHA512:
6
- metadata.gz: be62452e096816d12917eeb1dd82cc2ae2d3e5af732f0c1867d2f7df31d4946eb5321950dab47093b9b69d34c47a76a621efdf6f192e21deb4e7aefa45ca7ad6
7
- data.tar.gz: f995a83b838a2768ab92bb916f2611f2562eb5c527aab4af922970e14558dfd731c7f693a323cae54a1736942b097caeb516287aa914ff1feab7f154707ab861
6
+ metadata.gz: 17265f7ff49d6430b999aae29ff8a1bcaa253c1921ae88624240093f8cf2634c012f0cae51d091f226be3af1ae4cb4d6759fa9396769e5ea78de0e8ff9e3db37
7
+ data.tar.gz: 8464b1c1b71eb8973171199305f1c5b5d6ff838235c188740693faac724eb22b167e9f4d83ddd0e0801ba41405accdd92b89f17a6461b2becd3a1ed7d95be325
@@ -30,20 +30,21 @@ module OmniAuth
30
30
  }
31
31
  end
32
32
 
33
- def request_phase
34
- session[:authorization_code] = request.params['authorization_code']
35
- session[:scope] = request.params['scope']
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: session['authorization_code'],
44
+ code: request.params['authorization_code'],
44
45
  client_id: options['publishable_key'],
45
46
  # scope: 'openid+bolt.account.manage',
46
- scope: session['scope'],
47
+ scope: request.params['scope'],
47
48
  client_secret: options['api_key']
48
49
  }
49
50
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Bolt
5
- VERSION = '0.1.0'
5
+ VERSION = '0.2.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.1.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-03 00:00:00.000000000 Z
11
+ date: 2022-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth