omniauth-citrix 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: a1e00d185eff9e179dfc7004e135ddcbf87e5a3e
4
- data.tar.gz: 7bcc975fbd000470edc9d5062c79a3db19e2cf20
3
+ metadata.gz: 78037e1abace378fd74c39ffe95e63cf1fb6f00b
4
+ data.tar.gz: adbf5d133d01ef7dd2e32cb97a7ee3087cd17424
5
5
  SHA512:
6
- metadata.gz: bd3bddf77be05a429b719e4021cf78a0477301ced4f2c73a4e9e3ca90246791c9b269717028c54b1cf3f2f1b4d4808101346e3a220cdbd3c573d8576ed38095c
7
- data.tar.gz: cb4a48e6625aff1a5d6e160cf644feb795cfab55a6606d65cafbbe6f01e81061df90b15e017eaacdb3419e935bbcd81d14543a04861a581d4e4f9594d33e687b
6
+ metadata.gz: f738f41c05ca95e4704c60dff3fec47919fb571f8bafc4e9905c465522bb33e9cc8376877b8e26a3cc677add80147d657e2ee4091097a481a8b72b552a000c88
7
+ data.tar.gz: cfcc90e70b218ac2e4bbffa04a0e639de9ae73b627e04d46ff75332e9b772bd953094835ca5f367e41c4abb4e6110c4661d0cd5c21e2c297e783ba357b52922a
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Citrix
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  end
@@ -17,9 +17,9 @@ module OmniAuth
17
17
 
18
18
  def token_params
19
19
  {
20
- grant_type: 'authorization_code',
21
- code: request.params['code'],
22
- client_id: client.id
20
+ 'grant_type' => 'authorization_code',
21
+ 'code' => request.params['code'],
22
+ 'client_id' => client.id
23
23
  }
24
24
  end
25
25
 
@@ -44,8 +44,8 @@ module OmniAuth
44
44
  def build_access_token
45
45
  client.auth_code.get_token(
46
46
  request.params['code'],
47
- {redirect_uri: callback_url}.merge(token_params),
48
- deep_symbolize(options.auth_token_params)
47
+ {'redirect_uri' => callback_url}.merge(token_params),
48
+ options.auth_token_params
49
49
  )
50
50
  end
51
51
  end
@@ -38,15 +38,15 @@ describe OmniAuth::Strategies::Citrix do
38
38
  end
39
39
 
40
40
  it 'sets grant type' do
41
- expect(strategy.token_params).to include(grant_type: 'authorization_code')
41
+ expect(strategy.token_params).to include('grant_type' => 'authorization_code')
42
42
  end
43
43
 
44
44
  it 'sets code' do
45
- expect(strategy.token_params).to include(code: 'CODE')
45
+ expect(strategy.token_params).to include('code' => 'CODE')
46
46
  end
47
47
 
48
48
  it 'sets client id' do
49
- expect(strategy.token_params).to include(client_id: 'consumer_id')
49
+ expect(strategy.token_params).to include('client_id' => 'consumer_id')
50
50
  end
51
51
  end
52
52
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-citrix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-18 00:00:00.000000000 Z
11
+ date: 2016-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth2
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  requirements: []
122
122
  rubyforge_project:
123
- rubygems_version: 2.2.2
123
+ rubygems_version: 2.5.1
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: OmniAuth strategy for Citrix.