grape-kong 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f071b339bab19ed09e3a895d931ef1e0004f9ea5
4
- data.tar.gz: ded8cbd54f58a7c93a417cbf492cdaa0cfdfb632
3
+ metadata.gz: 4e42ec0fda3e87a79ef6eb9c534de1db82746603
4
+ data.tar.gz: 3969e3896ba4236759292341127886dd1b8ad834
5
5
  SHA512:
6
- metadata.gz: eda2bfe5e7c04670de97a80a9c05ebf1bf406b45dd38bb827b6a7a7dc0013e4cef94079a74efb29c46235c31ae43bb6aaad68cb3b2b3f522a706efd27ffbb9ed
7
- data.tar.gz: 8e90794d2e014d5cfb000838c2bbce14d2f89b228c74f2cc8a2c9cb1ed8e60235057c0fbdf16870cb749590651e905865385528da2552b37c50e3c99ed8a4d42
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['X-Authenticated-Userid']
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
- # def scopes
37
- # env['X-Authenticated-Scope']
38
- # end
36
+ def scopes
37
+ env['HTTP_X_AUTHENTICATED_SCOPE'].to_s.split(',')
38
+ end
39
39
 
40
40
  end
41
41
  end
@@ -1,5 +1,5 @@
1
1
  module Grape
2
2
  module Kong
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  end
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.0
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-09 00:00:00.000000000 Z
11
+ date: 2016-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grape