omniauth-workable 0.1.1 → 0.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: faf4f74e6ea20ad7c9bad761d1bc9a9be6c5279be5ac07117fdaebb03447c34b
4
- data.tar.gz: 8c0a83ee1b2cc6fa798ab6bc2bf418f9f46777c5ac386610a1b3c75529c13cd6
3
+ metadata.gz: 8a65af2167a42b2827cf5cb4d07adebb35933220b193dd3e8bb31343b6be25d4
4
+ data.tar.gz: 7cccf28a272b9afdede9fc13ec81940149010da89ca0f1311914e5de6a573ba2
5
5
  SHA512:
6
- metadata.gz: 7231340a1633e97ae9514830a2bed089a6ab89a94d11bf5c052c97878e7bf726e56ede1dfa7a6f7bf75278eb26f33d3c2557a7bc012afcb7043080c6cfe44845
7
- data.tar.gz: cd465ddd87646a49043623056fbd876a081e0b87f916e9c7aff713af244a32cbdbfa7c1e6167a5cc5b03d32b39adcf2960c827a6db4673871a6bc06d4103ed57
6
+ metadata.gz: '0350906e5d94e4684c61de31fcdca929f5fc8a672002643fc540499176804daab6a68a5cd5f914d04bff897f0a31e453d45ba34ec91c71c98ad479e593ead73e'
7
+ data.tar.gz: c57e6e098b5d9f7ca34aacac444a9e902b63d60efa2b1553566e239a40ef4e6d8db8e734cd82992b6f7a9daed3443e8e1d0340263421f89e5771cec6367a24eb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ### [0.1.2](https://www.github.com/ScreenLoop/omniauth-workable/compare/v0.1.1...v0.1.2) (2022-03-30)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * change authorize call parameters. ([dd2c696](https://www.github.com/ScreenLoop/omniauth-workable/commit/dd2c6966104bb3eb563a4eaab5288b3f810f615c))
9
+
3
10
  ### [0.1.1](https://www.github.com/ScreenLoop/omniauth-workable/compare/v0.1.0...v0.1.1) (2022-03-23)
4
11
 
5
12
 
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.2)
5
5
  omniauth (~> 2.0)
6
6
  omniauth-oauth2 (~> 1.7.1)
7
7
 
@@ -8,28 +8,25 @@ 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
13
  DEFAULT_SCOPE = 'r_candidates r_events r_members r_jobs w_comments'
14
14
 
15
15
  option :name, 'workable'
16
16
 
17
17
  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',
18
+ site: 'https://www.workable.com',
19
+ authorize_url: 'https://www.workable.com/oauth/authorize',
20
+ token_url: 'https://www.workable.com/oauth/token',
22
21
  }
23
22
 
24
- option :authorize_options, [:prompt, :response_type, :scope]
25
- option :sandbox, false
23
+ option :authorize_options, [:resource, :response_type, :scope]
26
24
 
27
25
  def authorize_params
28
26
  super.tap do |params|
29
- params[:prompt] ||= DEFAULT_PROMPT
27
+ params[:resource] ||= DEFAULT_RESOURCE
30
28
  params[:response_type] ||= DEFAULT_RESPONSE_TYPE
31
29
  params[:scope] ||= DEFAULT_SCOPE
32
- params[:audience] ||= options.client_options[:audience]
33
30
  end
34
31
  end
35
32
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Workable
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.2'
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.2
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-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth