omniauth-podio 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/omniauth-podio/version.rb +1 -1
- data/lib/omniauth/strategies/podio.rb +23 -8
- data/omniauth-podio.gemspec +2 -2
- metadata +94 -114
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0ac7da16b22a6dc721d2b9a55da0128ae44ee495
|
4
|
+
data.tar.gz: f18f037feae51281c19fb5a632a1b9a18dc3fcd6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a93756d9b7d8574a417416becfd51511bf65aa8f4dcbd0e1b6a496aef42569c6d6a10bf3d22cc6f23a44b96f35a014fff37e618ac5a01506e3dd030cbb26b457
|
7
|
+
data.tar.gz: 1c75995370ec3a420e0884a165dfe54bfbe374a441ea1d018fccad7101949cb8ad31363e5e889cd0c7be9a6d9519f205f2303ac9600376d83bc82aa4bec289a4
|
@@ -4,29 +4,44 @@ module OmniAuth
|
|
4
4
|
module Strategies
|
5
5
|
class Podio < OmniAuth::Strategies::OAuth2
|
6
6
|
option :client_options, {
|
7
|
-
:
|
8
|
-
:
|
9
|
-
:
|
7
|
+
site: 'https://api.podio.com/',
|
8
|
+
authorize_url: 'https://podio.com/oauth/authorize',
|
9
|
+
token_url: 'https://podio.com/oauth/token'
|
10
10
|
}
|
11
11
|
|
12
12
|
def request_phase
|
13
13
|
super
|
14
14
|
end
|
15
|
+
|
16
|
+
uid do
|
17
|
+
raw_info["user"]["user_id"]
|
18
|
+
end
|
15
19
|
|
16
20
|
info do
|
21
|
+
profile_info = raw_info["profile"]
|
22
|
+
user_info = raw_info["user"]
|
23
|
+
email = user_info["mail"]
|
24
|
+
verified = user_info["mails"].any?{|mail| mail["mail"] == email && mail["verified"] == true}
|
25
|
+
|
17
26
|
{
|
18
|
-
:email
|
19
|
-
:
|
20
|
-
|
27
|
+
email: email,
|
28
|
+
verified: verified,
|
29
|
+
name: profile_info["name"],
|
30
|
+
user_id: profile_info["user_id"].to_s,
|
31
|
+
image: profile_info["image"] && profile_info["image"]["link"],
|
32
|
+
location: profile_info["location"] && profile_info["location"][0],
|
33
|
+
status: user_info["status"],
|
34
|
+
time_zone: user_info["timezone"],
|
35
|
+
locale: user_info["locale"]
|
21
36
|
}
|
22
37
|
end
|
23
38
|
|
24
39
|
extra do
|
25
|
-
{:
|
40
|
+
{raw_info: raw_info}
|
26
41
|
end
|
27
42
|
|
28
43
|
def raw_info
|
29
|
-
@raw_info ||= MultiJson.decode(access_token.get('/user').body)
|
44
|
+
@raw_info ||= MultiJson.decode(access_token.get('/user/status').body)
|
30
45
|
end
|
31
46
|
end
|
32
47
|
end
|
data/omniauth-podio.gemspec
CHANGED
@@ -3,8 +3,8 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
require "omniauth-podio/version"
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
|
-
gem.authors = ["Lucas Allan"]
|
7
|
-
gem.email = ["lucas.allan@gmail.com"]
|
6
|
+
gem.authors = ["Lucas Allan", "Joel Van Horn"]
|
7
|
+
gem.email = ["lucas.allan@gmail.com", "joel@joelvanhorn.com"]
|
8
8
|
gem.description = %q{OmniAuth strategy for Podio.}
|
9
9
|
gem.summary = %q{OmniAuth strategy for Podio.}
|
10
10
|
gem.homepage = "https://github.com/lucasallan/omniauth-podio"
|
metadata
CHANGED
@@ -1,120 +1,109 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-podio
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
version: 0.0.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Lucas Allan
|
8
|
+
- Joel Van Horn
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2015-10-20 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: omniauth
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
hash: 15
|
29
|
-
segments:
|
30
|
-
- 1
|
31
|
-
- 0
|
32
|
-
version: "1.0"
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '1.0'
|
33
21
|
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: omniauth-oauth2
|
37
22
|
prerelease: false
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '1.0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: omniauth-oauth2
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '1.0'
|
48
35
|
type: :runtime
|
49
|
-
version_requirements: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: rspec
|
52
36
|
prerelease: false
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '1.0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rspec
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '2.7'
|
63
49
|
type: :development
|
64
|
-
version_requirements: *id003
|
65
|
-
- !ruby/object:Gem::Dependency
|
66
|
-
name: rack-test
|
67
50
|
prerelease: false
|
68
|
-
|
69
|
-
|
70
|
-
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '2.7'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: rack-test
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
71
60
|
- - ">="
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
|
74
|
-
segments:
|
75
|
-
- 0
|
76
|
-
version: "0"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
77
63
|
type: :development
|
78
|
-
version_requirements: *id004
|
79
|
-
- !ruby/object:Gem::Dependency
|
80
|
-
name: simplecov
|
81
64
|
prerelease: false
|
82
|
-
|
83
|
-
|
84
|
-
requirements:
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
85
67
|
- - ">="
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: simplecov
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
91
77
|
type: :development
|
92
|
-
version_requirements: *id005
|
93
|
-
- !ruby/object:Gem::Dependency
|
94
|
-
name: webmock
|
95
78
|
prerelease: false
|
96
|
-
|
97
|
-
|
98
|
-
requirements:
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
99
81
|
- - ">="
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: webmock
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
105
91
|
type: :development
|
106
|
-
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
107
98
|
description: OmniAuth strategy for Podio.
|
108
|
-
email:
|
99
|
+
email:
|
109
100
|
- lucas.allan@gmail.com
|
101
|
+
- joel@joelvanhorn.com
|
110
102
|
executables: []
|
111
|
-
|
112
103
|
extensions: []
|
113
|
-
|
114
104
|
extra_rdoc_files: []
|
115
|
-
|
116
|
-
|
117
|
-
- .gitignore
|
105
|
+
files:
|
106
|
+
- ".gitignore"
|
118
107
|
- Gemfile
|
119
108
|
- README.md
|
120
109
|
- Rakefile
|
@@ -126,37 +115,28 @@ files:
|
|
126
115
|
- spec/spec_helper.rb
|
127
116
|
homepage: https://github.com/lucasallan/omniauth-podio
|
128
117
|
licenses: []
|
129
|
-
|
118
|
+
metadata: {}
|
130
119
|
post_install_message:
|
131
120
|
rdoc_options: []
|
132
|
-
|
133
|
-
require_paths:
|
121
|
+
require_paths:
|
134
122
|
- lib
|
135
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
136
|
-
|
137
|
-
requirements:
|
123
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
138
125
|
- - ">="
|
139
|
-
- !ruby/object:Gem::Version
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
version: "0"
|
144
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
|
-
requirements:
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '0'
|
128
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
147
130
|
- - ">="
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
|
150
|
-
segments:
|
151
|
-
- 0
|
152
|
-
version: "0"
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
153
133
|
requirements: []
|
154
|
-
|
155
134
|
rubyforge_project:
|
156
|
-
rubygems_version:
|
135
|
+
rubygems_version: 2.4.8
|
157
136
|
signing_key:
|
158
|
-
specification_version:
|
137
|
+
specification_version: 4
|
159
138
|
summary: OmniAuth strategy for Podio.
|
160
|
-
test_files:
|
139
|
+
test_files:
|
161
140
|
- spec/omniauth/strategies/podio_spec.rb
|
162
141
|
- spec/spec_helper.rb
|
142
|
+
has_rdoc:
|