tito 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tito/oauth2_middleware.rb +5 -1
- data/lib/tito/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 918ce8db06477eca39dc90a359bfa30cc1f0d8d2
|
4
|
+
data.tar.gz: a0004c7c9e0278895c92d32df0a576eed6019dea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c8157e53fe70d6f8cb57218536f23513632d446839ed721e7f96022df435620da721ca71a0f48acc2da96252e29f22f1ab920372f8325e459a23645efc5acd8
|
7
|
+
data.tar.gz: a7effb0b35f05eeb56e2c8a7d1effc813ef8a3a4fa5920b3d4dd079d484fce6c7b83a36f9129270e0a2d8991ecc224333359955be30771e1d30f15253a85abc4
|
@@ -14,7 +14,11 @@ module Tito
|
|
14
14
|
|
15
15
|
if token.respond_to?(:empty?) && !token.empty?
|
16
16
|
env[:url].query = build_query params
|
17
|
-
|
17
|
+
if token.length > 30
|
18
|
+
env[:request_headers][AUTH_HEADER] ||= %(Bearer #{token})
|
19
|
+
else
|
20
|
+
env[:request_headers][AUTH_HEADER] ||= %(Token token="#{token}")
|
21
|
+
end
|
18
22
|
end
|
19
23
|
|
20
24
|
@app.call env
|
data/lib/tito/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tito
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Campbell
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json_api_client
|