omniauth-citrix 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 78037e1abace378fd74c39ffe95e63cf1fb6f00b
|
|
4
|
+
data.tar.gz: adbf5d133d01ef7dd2e32cb97a7ee3087cd17424
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f738f41c05ca95e4704c60dff3fec47919fb571f8bafc4e9905c465522bb33e9cc8376877b8e26a3cc677add80147d657e2ee4091097a481a8b72b552a000c88
|
|
7
|
+
data.tar.gz: cfcc90e70b218ac2e4bbffa04a0e639de9ae73b627e04d46ff75332e9b772bd953094835ca5f367e41c4abb4e6110c4661d0cd5c21e2c297e783ba357b52922a
|
|
@@ -17,9 +17,9 @@ module OmniAuth
|
|
|
17
17
|
|
|
18
18
|
def token_params
|
|
19
19
|
{
|
|
20
|
-
grant_type
|
|
21
|
-
code
|
|
22
|
-
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
|
|
48
|
-
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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:
|
|
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.
|
|
123
|
+
rubygems_version: 2.5.1
|
|
124
124
|
signing_key:
|
|
125
125
|
specification_version: 4
|
|
126
126
|
summary: OmniAuth strategy for Citrix.
|