auth_provider 0.0.2 → 0.0.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88b350c4634d62118d017e4805cb9d058b059f08
|
4
|
+
data.tar.gz: dceb1cb710f86d098b9b161e5ad213c7402b50e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9eead206751d185d5ee30df594bbff680aa3d6f1c3df456fed529215c384631e8dd4c30944d86fc13666d888a09ebbbb482dbc3acc530626203bb485375f8bd8
|
7
|
+
data.tar.gz: 3bad8d521ec151437ee69cc771d5e894d8a6176688143cf0ee5ed9225681e0f1c46b2f88c4fd47195e7d4f1edeafefc73aa7aad2f4a7819ce3130a44052aa64e
|
@@ -1,4 +1,10 @@
|
|
1
1
|
module AuthProvider
|
2
2
|
module ApplicationHelper
|
3
|
+
def authenticated_resource_owner
|
4
|
+
access_token = request.headers[:Authorization]
|
5
|
+
return unless access_token
|
6
|
+
access_token = access_token.split(' ').last
|
7
|
+
AuthProvider.resource_owner_from_token(access_token)
|
8
|
+
end
|
3
9
|
end
|
4
10
|
end
|
data/lib/auth_provider/engine.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auth_provider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pokai Chang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|