omniauth-outreach 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/Gemfile.lock +8 -22
- data/lib/omniauth/outreach/version.rb +1 -1
- data/lib/omniauth/outreach.rb +2 -2
- data/lib/omniauth/strategies/outreach.rb +9 -8
- metadata +9 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57670967c46347507fc4b0c4347a4d997b986fdb7212be1fdef00f31471ae1df
|
4
|
+
data.tar.gz: 0cf3594aba129c4ea4bd54aa4be793a2c461e6dbd872c60f7bc1ed5b9489454f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7eb2597cc97fb8d5527baa9c989aa556bb0115afe4207473ae0022dd89b1b6bc2ac5a62d0d9103d86847a5061391463ae11795da0c4e087b8f61cad5d62e3073
|
7
|
+
data.tar.gz: 236f9abc3a8cd80e2dfb7b8568245394a7ba0d096b88680921389d28ab22f7fc127fe37951519bb2c4a7601ec3889de89c66ab882c2980d1078e8165a384bc78
|
data/Gemfile.lock
CHANGED
@@ -1,29 +1,22 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
omniauth-outreach (0.1.
|
5
|
-
omniauth
|
6
|
-
omniauth-oauth2
|
4
|
+
omniauth-outreach (0.1.1)
|
5
|
+
omniauth (~> 2.1.2)
|
6
|
+
omniauth-oauth2 (~> 1.8.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
addressable (2.8.6)
|
12
|
-
public_suffix (>= 2.0.2, < 6.0)
|
13
11
|
ast (2.4.2)
|
14
12
|
base64 (0.2.0)
|
15
|
-
bigdecimal (3.1.7)
|
16
13
|
coderay (1.1.3)
|
17
|
-
crack (1.0.0)
|
18
|
-
bigdecimal
|
19
|
-
rexml
|
20
14
|
diff-lcs (1.5.1)
|
21
15
|
faraday (2.8.1)
|
22
16
|
base64
|
23
17
|
faraday-net_http (>= 2.0, < 3.1)
|
24
18
|
ruby2_keywords (>= 0.0.4)
|
25
19
|
faraday-net_http (3.0.2)
|
26
|
-
hashdiff (1.1.0)
|
27
20
|
hashie (5.0.0)
|
28
21
|
json (2.7.2)
|
29
22
|
jwt (2.8.1)
|
@@ -51,12 +44,10 @@ GEM
|
|
51
44
|
pry (0.14.2)
|
52
45
|
coderay (~> 1.1)
|
53
46
|
method_source (~> 1.0)
|
54
|
-
public_suffix (5.0.5)
|
55
47
|
racc (1.7.3)
|
56
|
-
rack (
|
57
|
-
rack-protection (3.
|
58
|
-
|
59
|
-
rack (~> 2.2, >= 2.2.4)
|
48
|
+
rack (3.0.10)
|
49
|
+
rack-protection (3.0.6)
|
50
|
+
rack
|
60
51
|
rainbow (3.1.1)
|
61
52
|
rake (13.2.1)
|
62
53
|
regexp_parser (2.9.0)
|
@@ -92,15 +83,12 @@ GEM
|
|
92
83
|
hashie
|
93
84
|
version_gem (~> 1.1, >= 1.1.1)
|
94
85
|
unicode-display_width (2.5.0)
|
95
|
-
vcr (6.1.0)
|
96
86
|
version_gem (1.1.4)
|
97
|
-
webmock (3.23.0)
|
98
|
-
addressable (>= 2.8.0)
|
99
|
-
crack (>= 0.3.2)
|
100
|
-
hashdiff (>= 0.4.0, < 2.0.0)
|
101
87
|
|
102
88
|
PLATFORMS
|
89
|
+
ruby
|
103
90
|
x86_64-darwin-21
|
91
|
+
x86_64-linux
|
104
92
|
|
105
93
|
DEPENDENCIES
|
106
94
|
omniauth-outreach!
|
@@ -108,8 +96,6 @@ DEPENDENCIES
|
|
108
96
|
rake (~> 13.0)
|
109
97
|
rspec (~> 3.0)
|
110
98
|
rubocop (~> 1.21)
|
111
|
-
vcr
|
112
|
-
webmock
|
113
99
|
|
114
100
|
BUNDLED WITH
|
115
101
|
2.3.9
|
data/lib/omniauth/outreach.rb
CHANGED
@@ -1,24 +1,25 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
2
|
+
|
3
|
+
require "omniauth-oauth2"
|
3
4
|
|
4
5
|
module OmniAuth
|
5
6
|
module Strategies
|
6
7
|
# The OAuth2 strategy for Outreach.
|
7
8
|
class Outreach < OmniAuth::Strategies::OAuth2
|
8
|
-
option :name,
|
9
|
+
option :name, "outreach"
|
9
10
|
|
10
11
|
option :client_options, {
|
11
|
-
site:
|
12
|
-
authorize_url:
|
13
|
-
token_url:
|
12
|
+
site: "https://api.outreach.io",
|
13
|
+
authorize_url: "https://api.outreach.io/oauth/authorize",
|
14
|
+
token_url: "https://api.outreach.io/oauth/token"
|
14
15
|
}
|
15
16
|
|
16
|
-
uid { raw_info[
|
17
|
+
uid { raw_info["org_user_id"] }
|
17
18
|
|
18
19
|
info do
|
19
20
|
# In our case, Outreach is returning the email address as the sub.
|
20
21
|
# But we still need to check if it's an email address or not.
|
21
|
-
raw_info[
|
22
|
+
raw_info["sub"].match?(/.*@.*\..*/) ? { email: raw_info["sub"] } : { name: raw_info["sub"] }
|
22
23
|
end
|
23
24
|
|
24
25
|
def raw_info
|
@@ -26,4 +27,4 @@ module OmniAuth
|
|
26
27
|
end
|
27
28
|
end
|
28
29
|
end
|
29
|
-
end
|
30
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-outreach
|
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
|
- Tiaki YEN
|
@@ -10,34 +10,6 @@ bindir: exe
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2024-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: vcr
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: webmock
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
13
|
- !ruby/object:Gem::Dependency
|
42
14
|
name: rubocop
|
43
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,30 +42,30 @@ dependencies:
|
|
70
42
|
name: omniauth
|
71
43
|
requirement: !ruby/object:Gem::Requirement
|
72
44
|
requirements:
|
73
|
-
- - "
|
45
|
+
- - "~>"
|
74
46
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
47
|
+
version: 2.1.2
|
76
48
|
type: :runtime
|
77
49
|
prerelease: false
|
78
50
|
version_requirements: !ruby/object:Gem::Requirement
|
79
51
|
requirements:
|
80
|
-
- - "
|
52
|
+
- - "~>"
|
81
53
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
54
|
+
version: 2.1.2
|
83
55
|
- !ruby/object:Gem::Dependency
|
84
56
|
name: omniauth-oauth2
|
85
57
|
requirement: !ruby/object:Gem::Requirement
|
86
58
|
requirements:
|
87
|
-
- - "
|
59
|
+
- - "~>"
|
88
60
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
61
|
+
version: 1.8.0
|
90
62
|
type: :runtime
|
91
63
|
prerelease: false
|
92
64
|
version_requirements: !ruby/object:Gem::Requirement
|
93
65
|
requirements:
|
94
|
-
- - "
|
66
|
+
- - "~>"
|
95
67
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
68
|
+
version: 1.8.0
|
97
69
|
description: OmniAuth Oauth2 strategy for outreach.io - https://developers.outreach.io/api/oauth/
|
98
70
|
email:
|
99
71
|
- tiaki@ekohe.com
|