grape-kong 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 +4 -4
- data/lib/grape/kong/authenticable.rb +4 -4
- data/lib/grape/kong/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: 4e42ec0fda3e87a79ef6eb9c534de1db82746603
|
|
4
|
+
data.tar.gz: 3969e3896ba4236759292341127886dd1b8ad834
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 50fa22aea124003fa760b6b70edc953cef3221761ddd3cc1ca1f251f5dd6cc95195ffada77a93035710112a79e43a0ff423ac3bf7f3a5062642098aaedb423bc
|
|
7
|
+
data.tar.gz: c1344ece7d05cd00386233e2518921b9d15b6baea3f42c42fcd6b96bd57620a2da668d440c6b6f37f2dfbb803a75bca580fe6366d160e06f42509e795c8b0bc4
|
|
@@ -28,14 +28,14 @@ module Grape
|
|
|
28
28
|
|
|
29
29
|
# logged-in user ID who has granted permission to the client
|
|
30
30
|
def resource_owner_id
|
|
31
|
-
env['
|
|
31
|
+
env['HTTP_X_AUTHENTICATED_USERID']
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
# TODO
|
|
35
35
|
# comma-separated list of scopes that the end user has authenticated (if available)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
def scopes
|
|
37
|
+
env['HTTP_X_AUTHENTICATED_SCOPE'].to_s.split(',')
|
|
38
|
+
end
|
|
39
39
|
|
|
40
40
|
end
|
|
41
41
|
end
|
data/lib/grape/kong/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: grape-kong
|
|
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
|
- Pierre-Louis Gottfrois
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-03-
|
|
11
|
+
date: 2016-03-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: grape
|