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 +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/lib/omniauth/strategies/workable.rb +6 -9
- data/lib/omniauth/workable/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a65af2167a42b2827cf5cb4d07adebb35933220b193dd3e8bb31343b6be25d4
|
4
|
+
data.tar.gz: 7cccf28a272b9afdede9fc13ec81940149010da89ca0f1311914e5de6a573ba2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
@@ -8,28 +8,25 @@ module OmniAuth
|
|
8
8
|
module Strategies
|
9
9
|
# OmniAuth implementation for Workable
|
10
10
|
class Workable < OmniAuth::Strategies::OAuth2
|
11
|
-
|
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
|
-
|
20
|
-
|
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, [:
|
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[:
|
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
|
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.
|
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-
|
11
|
+
date: 2022-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|