omniauth-prayer-letters 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/prayer_letters/version.rb +1 -1
- data/lib/omniauth/strategies/prayer_letters.rb +10 -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: 20e0094789e6e9755b39a95cb4b409613d993e6f
|
4
|
+
data.tar.gz: b47ca793c41e42cebe20ce8c2f492727b189e95c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b62309b5334d28e776feeeaf3ac53c2eea6457099b94cd7e0c93222283e4a9b50ed1fb903d1038a1691cc3389c609c28099612b434e4a0d3ecf0849af3c8a60
|
7
|
+
data.tar.gz: b2c522250731adac443b62e363f94f90407a44d38269a15c9483b64ee132c368a0641c8aa52cdbf39924db0ecaa048a76a89a5a9f6289dbb751499aefbcc05f1
|
@@ -12,9 +12,11 @@ module OmniAuth
|
|
12
12
|
:access_token_path => '/api/oauth1/token',
|
13
13
|
:request_token_path => '/api/oauth1/initiate',
|
14
14
|
:http_method => 'post',
|
15
|
-
:scheme => :query_string
|
15
|
+
:scheme => :query_string
|
16
16
|
}
|
17
17
|
|
18
|
+
option :permissions, 'contacts.read,contacts.write'
|
19
|
+
|
18
20
|
uid { raw_info['id'] }
|
19
21
|
|
20
22
|
info do
|
@@ -31,6 +33,13 @@ module OmniAuth
|
|
31
33
|
def raw_info
|
32
34
|
@raw_info ||= {} #MultiJson.decode(access_token.get('/v2/people/@me/@self?format=json').body)['entry']
|
33
35
|
end
|
36
|
+
|
37
|
+
def request_phase
|
38
|
+
options.request_params ||= {}
|
39
|
+
options.request_params[:permissions] = options.permissions
|
40
|
+
super
|
41
|
+
end
|
42
|
+
|
34
43
|
end
|
35
44
|
end
|
36
45
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-prayer-letters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Starcher
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-oauth
|