omniauth-whiplash 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/omniauth/strategies/whiplash.rb +1 -0
- data/lib/omniauth/whiplash/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86eee859c408719bc07a2f462d6051bd4d0bdc81
|
4
|
+
data.tar.gz: a0c3d3132d482fb60b8f1e3f8bfb988bd418f3f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87684bb74cc2aa4dd6fc74cdeffea6685d4e039bdc0feb383887aa59d845961abfbf56b8a574c5dd04984d73c895721bebcb3aef43c92dd73741a91f1e2bffbf
|
7
|
+
data.tar.gz: 17d180145e640bbec5f7bfa63b2086e8241fa364273663a44cf41d0b5098b3191c553d9b0354d3c3f5c6cff4cded0ac5c51d95e90739aae147d5afc28f237199
|
data/README.md
CHANGED
@@ -26,14 +26,14 @@ Here's a quick example, adding the middleware to a Rails app in config/initializ
|
|
26
26
|
|
27
27
|
```ruby
|
28
28
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
29
|
-
provider :whiplash, ENV.fetch('WHIPLASH_CLIENT_ID'), ENV.fetch('WHIPLASH_CLIENT_SECRET'), scope: ENV.fetch('WHIPLASH_CLIENT_SCOPE')
|
29
|
+
provider :whiplash, ENV.fetch('WHIPLASH_CLIENT_ID'), ENV.fetch('WHIPLASH_CLIENT_SECRET'), scope: ENV.fetch('WHIPLASH_CLIENT_SCOPE'), client_options: {site: ENV.fetch('WHIPLASH_API_URL')}
|
30
30
|
end
|
31
31
|
```
|
32
32
|
|
33
33
|
If you are using Devise, you can skip the above and instead include this to your Devise configuration in `initializers/devise.rb`:
|
34
34
|
|
35
35
|
```ruby
|
36
|
-
config.omniauth :whiplash, ENV.fetch('WHIPLASH_CLIENT_ID'), ENV.fetch('WHIPLASH_CLIENT_SECRET'), scope: ENV.fetch('WHIPLASH_CLIENT_SCOPE')
|
36
|
+
config.omniauth :whiplash, ENV.fetch('WHIPLASH_CLIENT_ID'), ENV.fetch('WHIPLASH_CLIENT_SECRET'), scope: ENV.fetch('WHIPLASH_CLIENT_SCOPE'), client_options: {site: ENV.fetch('WHIPLASH_API_URL')}
|
37
37
|
```
|
38
38
|
|
39
39
|
Please refer to the Whiplash API documentation for information regarding scopes.
|
@@ -16,6 +16,7 @@ module OmniAuth
|
|
16
16
|
first_name: raw_info["first_name"],
|
17
17
|
last_name: raw_info["last_name"],
|
18
18
|
role: raw_info["role"],
|
19
|
+
locale: raw_info["locale"],
|
19
20
|
partner_id: raw_info["partner_id"],
|
20
21
|
warehouse_id: raw_info["warehouse_id"],
|
21
22
|
customer_ids: raw_info["customer_ids"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-whiplash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Dickson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-06-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -124,9 +124,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.
|
127
|
+
rubygems_version: 2.6.14.1
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: Omniauth Strategy for Whiplash Merchandising
|
131
131
|
test_files: []
|
132
|
-
has_rdoc:
|