omniauth-workable 0.1.1 → 0.1.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
  SHA256:
3
- metadata.gz: faf4f74e6ea20ad7c9bad761d1bc9a9be6c5279be5ac07117fdaebb03447c34b
4
- data.tar.gz: 8c0a83ee1b2cc6fa798ab6bc2bf418f9f46777c5ac386610a1b3c75529c13cd6
3
+ metadata.gz: ca96e909b8bcf3050bf8f1f85b50f5ca266e2daabbe88acb109ae54cba3d8143
4
+ data.tar.gz: a8fb960a9ea63a1ed718bba57e7cbd783112f4e0110efc49efa4093b243f2cd1
5
5
  SHA512:
6
- metadata.gz: 7231340a1633e97ae9514830a2bed089a6ab89a94d11bf5c052c97878e7bf726e56ede1dfa7a6f7bf75278eb26f33d3c2557a7bc012afcb7043080c6cfe44845
7
- data.tar.gz: cd465ddd87646a49043623056fbd876a081e0b87f916e9c7aff713af244a32cbdbfa7c1e6167a5cc5b03d32b39adcf2960c827a6db4673871a6bc06d4103ed57
6
+ metadata.gz: 9eda755b54bf92e2fcbb37b8f901b19d26fa3a9608d3b10cbdfaf610d8d15ab908b650b3eb6f3ffa680088b4a83b6270487d0cbc8b5420c2c4a81549d93d9435
7
+ data.tar.gz: ed5051adbe5debbe078e549f4b0f99817672d0d2661462074b11ea3a640f5a8012aad0b65196d50951e78cd8e82a6b59c243a16a38b8ae304cd3673ec8787573
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ### [0.1.3](https://www.github.com/ScreenLoop/omniauth-workable/compare/v0.1.2...v0.1.3) (2022-10-18)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * change default_scope. ([7aef1fa](https://www.github.com/ScreenLoop/omniauth-workable/commit/7aef1faaf8d5aad30d8f7841c17e9fd79c77ad8f))
9
+
10
+ ### [0.1.2](https://www.github.com/ScreenLoop/omniauth-workable/compare/v0.1.1...v0.1.2) (2022-03-30)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * change authorize call parameters. ([dd2c696](https://www.github.com/ScreenLoop/omniauth-workable/commit/dd2c6966104bb3eb563a4eaab5288b3f810f615c))
16
+
3
17
  ### [0.1.1](https://www.github.com/ScreenLoop/omniauth-workable/compare/v0.1.0...v0.1.1) (2022-03-23)
4
18
 
5
19
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth-workable (0.1.1)
4
+ omniauth-workable (0.1.3)
5
5
  omniauth (~> 2.0)
6
6
  omniauth-oauth2 (~> 1.7.1)
7
7
 
@@ -10,32 +10,32 @@ GEM
10
10
  specs:
11
11
  ast (2.4.2)
12
12
  diff-lcs (1.4.4)
13
- faraday (2.2.0)
14
- faraday-net_http (~> 2.0)
13
+ faraday (2.6.0)
14
+ faraday-net_http (>= 2.0, < 3.1)
15
15
  ruby2_keywords (>= 0.0.4)
16
- faraday-net_http (2.0.1)
16
+ faraday-net_http (3.0.1)
17
17
  hashie (5.0.0)
18
- jwt (2.3.0)
19
- multi_json (1.15.0)
18
+ jwt (2.5.0)
20
19
  multi_xml (0.6.0)
21
- oauth2 (1.4.9)
20
+ oauth2 (2.0.9)
22
21
  faraday (>= 0.17.3, < 3.0)
23
22
  jwt (>= 1.0, < 3.0)
24
- multi_json (~> 1.3)
25
23
  multi_xml (~> 0.5)
26
- rack (>= 1.2, < 3)
27
- omniauth (2.0.4)
24
+ rack (>= 1.2, < 4)
25
+ snaky_hash (~> 2.0)
26
+ version_gem (~> 1.1)
27
+ omniauth (2.1.0)
28
28
  hashie (>= 3.4.6)
29
- rack (>= 1.6.2, < 3)
29
+ rack (>= 2.2.3)
30
30
  rack-protection
31
- omniauth-oauth2 (1.7.2)
32
- oauth2 (~> 1.4)
31
+ omniauth-oauth2 (1.7.3)
32
+ oauth2 (>= 1.4, < 3)
33
33
  omniauth (>= 1.9, < 3)
34
34
  parallel (1.20.1)
35
35
  parser (3.0.2.0)
36
36
  ast (~> 2.4.1)
37
- rack (2.2.3)
38
- rack-protection (2.2.0)
37
+ rack (3.0.0)
38
+ rack-protection (3.0.2)
39
39
  rack
40
40
  rainbow (3.0.0)
41
41
  rake (12.3.3)
@@ -70,7 +70,11 @@ GEM
70
70
  rubocop-ast (>= 1.1.0)
71
71
  ruby-progressbar (1.11.0)
72
72
  ruby2_keywords (0.0.5)
73
+ snaky_hash (2.0.1)
74
+ hashie
75
+ version_gem (~> 1.1, >= 1.1.1)
73
76
  unicode-display_width (2.0.0)
77
+ version_gem (1.1.1)
74
78
 
75
79
  PLATFORMS
76
80
  ruby
@@ -8,28 +8,27 @@ module OmniAuth
8
8
  module Strategies
9
9
  # OmniAuth implementation for Workable
10
10
  class Workable < OmniAuth::Strategies::OAuth2
11
- DEFAULT_PROMPT = 'consent'
11
+ DEFAULT_RESOURCE = 'user'
12
12
  DEFAULT_RESPONSE_TYPE = 'code'
13
- DEFAULT_SCOPE = 'r_candidates r_events r_members r_jobs w_comments'
13
+ DEFAULT_SCOPE = 'r_candidates r_jobs'
14
+ # Uncomment the line below and remove the line above as soon as the workable team releases the w_comment scope
15
+ # DEFAULT_SCOPE = 'r_candidates r_jobs w_comments'
14
16
 
15
17
  option :name, 'workable'
16
18
 
17
19
  option :client_options, {
18
- site: 'https://www.workable',
19
- audience: 'https://www.workable',
20
- authorize_url: 'https://www.workable/oauth/authorize',
21
- token_url: 'https://www.workable/oauth/token',
20
+ site: 'https://www.workable.com',
21
+ authorize_url: 'https://www.workable.com/oauth/authorize',
22
+ token_url: 'https://www.workable.com/oauth/token',
22
23
  }
23
24
 
24
- option :authorize_options, [:prompt, :response_type, :scope]
25
- option :sandbox, false
25
+ option :authorize_options, [:resource, :response_type, :scope]
26
26
 
27
27
  def authorize_params
28
28
  super.tap do |params|
29
- params[:prompt] ||= DEFAULT_PROMPT
29
+ params[:resource] ||= DEFAULT_RESOURCE
30
30
  params[:response_type] ||= DEFAULT_RESPONSE_TYPE
31
31
  params[:scope] ||= DEFAULT_SCOPE
32
- params[:audience] ||= options.client_options[:audience]
33
32
  end
34
33
  end
35
34
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Workable
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-workable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Oliveira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-23 00:00:00.000000000 Z
11
+ date: 2022-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth