apisonator 2.100.2.pre1 → 3.0.0.pre1
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 +4 -4
- data/CHANGELOG.md +40 -0
- data/Gemfile.base +0 -1
- data/Gemfile.lock +7 -21
- data/Gemfile.on_prem.lock +7 -21
- data/lib/3scale/backend.rb +0 -1
- data/lib/3scale/backend/application.rb +22 -6
- data/lib/3scale/backend/configuration.rb +2 -3
- data/lib/3scale/backend/errors.rb +0 -36
- data/lib/3scale/backend/listener.rb +2 -83
- data/lib/3scale/backend/metric/collection.rb +1 -4
- data/lib/3scale/backend/storage_async/client.rb +3 -1
- data/lib/3scale/backend/storage_helpers.rb +7 -2
- data/lib/3scale/backend/transactor.rb +27 -14
- data/lib/3scale/backend/transactor/report_job.rb +1 -1
- data/lib/3scale/backend/transactor/status.rb +0 -5
- data/lib/3scale/backend/usage_limit.rb +20 -11
- data/lib/3scale/backend/version.rb +1 -1
- data/licenses.xml +6 -66
- metadata +2 -9
- data/lib/3scale/backend/oauth.rb +0 -4
- data/lib/3scale/backend/oauth/token.rb +0 -26
- data/lib/3scale/backend/oauth/token_key.rb +0 -30
- data/lib/3scale/backend/oauth/token_storage.rb +0 -313
- data/lib/3scale/backend/oauth/token_value.rb +0 -25
- data/lib/3scale/backend/views/oauth_access_tokens.builder +0 -14
- data/lib/3scale/backend/views/oauth_app_id_by_token.builder +0 -4
@@ -1,25 +0,0 @@
|
|
1
|
-
# This module encodes values in Redis for our tokens
|
2
|
-
module ThreeScale
|
3
|
-
module Backend
|
4
|
-
module OAuth
|
5
|
-
class Token
|
6
|
-
module Value
|
7
|
-
# Note: this module made more sense when it also supported end-users.
|
8
|
-
# Given how simple the module is, we could get rid of it in a future
|
9
|
-
# refactor.
|
10
|
-
|
11
|
-
class << self
|
12
|
-
# this method is used when creating tokens
|
13
|
-
def for(app_id)
|
14
|
-
app_id
|
15
|
-
end
|
16
|
-
|
17
|
-
def from(value)
|
18
|
-
value
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
xml.instruct!
|
2
|
-
xml.oauth_access_tokens do
|
3
|
-
@tokens.each do |t|
|
4
|
-
# Some bright head leaked the -1 that Redis uses to indicate there is no TTL
|
5
|
-
# associated with a key. The behaviour is inconsistent because somehow we
|
6
|
-
# BOTH expect that a token with no TTL does not have a "ttl" attribute in
|
7
|
-
# the generated XML and at the same time we expect (in some tests) that such
|
8
|
-
# tokens have this field with a -1 value.
|
9
|
-
#
|
10
|
-
# Just enforce the ttl to be -1 when there is none.
|
11
|
-
attrs = { :ttl => t.ttl || -1 }
|
12
|
-
xml.oauth_access_token t.token, attrs
|
13
|
-
end
|
14
|
-
end
|