auth_passport_checkpoint 0.0.17.5 → 0.0.17.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,13 +10,15 @@
10
10
  # ActionController::Base.send :include, AccessTokenHelper
11
11
  # end
12
12
 
13
- if !AuthPassportCheckpoint.is_intermediary_api?
14
- module AuthPassportCheckpoint
15
- module Helper
16
- def current_access_token
17
- return nil unless session['user_id']
18
- session['user_id'].try(:credentials).try(:token)
19
- end
20
- end
21
- end
22
- end
13
+ # REMOVED THE INTERMEDIARY API LOGIC - Useless
14
+ #
15
+ # if !AuthPassportCheckpoint.is_intermediary_api?
16
+ # module AuthPassportCheckpoint
17
+ # module Helper
18
+ # def current_access_token
19
+ # return nil unless session['user_id']
20
+ # session['user_id'].try(:credentials).try(:token)
21
+ # end
22
+ # end
23
+ # end
24
+ # end
@@ -3,16 +3,23 @@ module AuthPassportCheckpoint
3
3
  module AccessTokenHelper
4
4
 
5
5
  def current_access_token
6
- params[:access_token]
6
+ unless token = params[:access_token]
7
+ return nil unless session['user_id']
8
+ token = session['user_id'].try(:credentials).try(:token)
9
+ end
10
+ token
7
11
  end
8
12
 
9
13
  end
10
14
  end
11
15
  end
12
- if AuthPassportCheckpoint.is_intermediary_api?
13
- module AuthPassportCheckpoint
14
- module Helper
15
- include AuthPassportCheckpoint::IntermediaryApi::AccessTokenHelper
16
- end
16
+
17
+ # REMOVED THE INTERMEDIARY API LOGIC - Useless
18
+ #
19
+ #if AuthPassportCheckpoint.is_intermediary_api?
20
+ module AuthPassportCheckpoint
21
+ module Helper
22
+ include AuthPassportCheckpoint::IntermediaryApi::AccessTokenHelper
17
23
  end
18
- end
24
+ end
25
+ #end
@@ -2,6 +2,7 @@ module SignedRequestHelper
2
2
  extend ActiveSupport::Concern
3
3
 
4
4
  def signed_request_result(request_uri, args = {})
5
+ logger.debug current_access_token
5
6
  if kurrent_user = AuthPassportCheckpoint::Booster.get(current_access_token)
6
7
  kurrent_user
7
8
  else
@@ -1,3 +1,3 @@
1
1
  module AuthPassportCheckpoint
2
- VERSION = "0.0.17.5"
2
+ VERSION = "0.0.17.6"
3
3
  end
metadata CHANGED
@@ -1,85 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auth_passport_checkpoint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17.5
4
+ version: 0.0.17.6
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - NicoArboagst
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-10-05 00:00:00.000000000 Z
12
+ date: 2014-03-20 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rails
15
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &70112635988020 !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
19
21
  version: 3.2.12
20
22
  type: :runtime
21
23
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ~>
25
- - !ruby/object:Gem::Version
26
- version: 3.2.12
24
+ version_requirements: *70112635988020
27
25
  - !ruby/object:Gem::Dependency
28
26
  name: auth_origin_control
29
- requirement: !ruby/object:Gem::Requirement
27
+ requirement: &70112635987520 !ruby/object:Gem::Requirement
28
+ none: false
30
29
  requirements:
31
30
  - - ~>
32
31
  - !ruby/object:Gem::Version
33
32
  version: 0.0.4
34
33
  type: :runtime
35
34
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ~>
39
- - !ruby/object:Gem::Version
40
- version: 0.0.4
35
+ version_requirements: *70112635987520
41
36
  - !ruby/object:Gem::Dependency
42
37
  name: sso_clyent
43
- requirement: !ruby/object:Gem::Requirement
38
+ requirement: &70112635987060 !ruby/object:Gem::Requirement
39
+ none: false
44
40
  requirements:
45
41
  - - ~>
46
42
  - !ruby/object:Gem::Version
47
43
  version: 0.0.1
48
44
  type: :runtime
49
45
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ~>
53
- - !ruby/object:Gem::Version
54
- version: 0.0.1
46
+ version_requirements: *70112635987060
55
47
  - !ruby/object:Gem::Dependency
56
48
  name: redis
57
- requirement: !ruby/object:Gem::Requirement
49
+ requirement: &70112635986580 !ruby/object:Gem::Requirement
50
+ none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
61
54
  version: 3.0.0
62
55
  type: :runtime
63
56
  prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ~>
67
- - !ruby/object:Gem::Version
68
- version: 3.0.0
57
+ version_requirements: *70112635986580
69
58
  - !ruby/object:Gem::Dependency
70
59
  name: mysql2
71
- requirement: !ruby/object:Gem::Requirement
60
+ requirement: &70112635986140 !ruby/object:Gem::Requirement
61
+ none: false
72
62
  requirements:
73
63
  - - ! '>='
74
64
  - !ruby/object:Gem::Version
75
65
  version: '0'
76
66
  type: :development
77
67
  prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ! '>='
81
- - !ruby/object:Gem::Version
82
- version: '0'
68
+ version_requirements: *70112635986140
83
69
  description: ! 'Checks id at entry: id of users on client apps and on intermediary
84
70
  apps (sso_clyent), id of apps on intermediary apps (auth_origin_control), id '
85
71
  email:
@@ -108,26 +94,27 @@ files:
108
94
  - README.rdoc
109
95
  homepage: https://github.com/NicoArbogast/auth_passport_checkpoint
110
96
  licenses: []
111
- metadata: {}
112
97
  post_install_message:
113
98
  rdoc_options: []
114
99
  require_paths:
115
100
  - lib
116
101
  required_ruby_version: !ruby/object:Gem::Requirement
102
+ none: false
117
103
  requirements:
118
104
  - - ! '>='
119
105
  - !ruby/object:Gem::Version
120
106
  version: '0'
121
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
+ none: false
122
109
  requirements:
123
110
  - - ! '>='
124
111
  - !ruby/object:Gem::Version
125
112
  version: '0'
126
113
  requirements: []
127
114
  rubyforge_project:
128
- rubygems_version: 2.0.7
115
+ rubygems_version: 1.8.17
129
116
  signing_key:
130
- specification_version: 4
117
+ specification_version: 3
131
118
  summary: ! 'Checks id at entry: users and apps on both end client apps and intermediary
132
119
  apis'
133
120
  test_files: []
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MDdiNTMyZGJlNGU3MWRlMWRjZGExMjgxMGEwMmI0YzZmYjg5NWZhMw==
5
- data.tar.gz: !binary |-
6
- ZDg1NTBjYWIwOGQ2MzA0N2E5NzZhNjZkZDZjYTlhNDBkY2ZmZTQ0MA==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- ODg1NThjZTNkNzRhMjQ5MmY2NmQzYjAyNzUxMzcxY2UzNjlmMjIyYWMzNWQ1
10
- YzY2NGRkNGE1ODFhNWQzM2JiNjdjNzhmMzE0NTY4NzFjMThkYjAyMmE1NTc0
11
- NTBiMDJhNjhiYTA3ZTAxZGMwYTg5OGVjYTExOGJiYTc1Yzk4YzA=
12
- data.tar.gz: !binary |-
13
- OGE0Y2Q4YTAxYzEwYzkxNzJmMzBlOTU1YzMzMjE5M2Q3MDkyMTQ5NzgxMWNh
14
- NWQxNzA5MmU1YjMwOTc2ZGIzZWRhMjcxMTJlNDRjMTNlOWViMzE0NGFmYTRm
15
- MTllMjI1NTZmOTZhNTU4OTEyYWYxYmNkOWNmODA1N2IxOTAwM2U=