shopify_app 13.4.1 → 13.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/shopify_app/controller_concerns/login_protection.rb +8 -0
- data/lib/shopify_app/version.rb +1 -1
- data/package.json +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: 56264e18e59398228e56a0a26dc752989b527d7ce935f0375a872fd89c88b4b9
|
4
|
+
data.tar.gz: a9c8ff9c9828278f7fff6013a09ec6bf3ea8f4542c700c5fe57bf16e33ed1f68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbd3b18c84d6e69c01516f7b74927ba3d236cd17ad2d88a68cc1c93dfd1f8d20aa614507adf031625e088612001d71dbbb116bb267865b1924674d2a6f937e6f
|
7
|
+
data.tar.gz: 82b859132159cf85fb3af1607296b20aa040ca30515a6225fa3887ee938dd721f11be2939ea2d9179a448e80ae3d2e7316749bd237ee8344fa0cf1fe862d6a7b
|
data/CHANGELOG.md
CHANGED
@@ -14,6 +14,8 @@ module ShopifyApp
|
|
14
14
|
rescue_from ActiveResource::UnauthorizedAccess, with: :close_session
|
15
15
|
end
|
16
16
|
|
17
|
+
ACCESS_TOKEN_REQUIRED_HEADER = 'X-Shopify-API-Request-Failure-Unauthorized'
|
18
|
+
|
17
19
|
def activate_shopify_session
|
18
20
|
return redirect_to_login if current_shopify_session.blank?
|
19
21
|
clear_top_level_oauth_cookie
|
@@ -80,6 +82,10 @@ module ShopifyApp
|
|
80
82
|
end
|
81
83
|
end
|
82
84
|
|
85
|
+
def signal_access_token_required
|
86
|
+
response.set_header(ACCESS_TOKEN_REQUIRED_HEADER, true)
|
87
|
+
end
|
88
|
+
|
83
89
|
protected
|
84
90
|
|
85
91
|
def jwt_shopify_domain
|
@@ -204,6 +210,8 @@ module ShopifyApp
|
|
204
210
|
def return_address
|
205
211
|
return base_return_address unless ShopifyApp.configuration.allow_jwt_authentication
|
206
212
|
return_address_with_params(shop: current_shopify_domain)
|
213
|
+
rescue ShopifyDomainNotFound
|
214
|
+
base_return_address
|
207
215
|
end
|
208
216
|
|
209
217
|
def base_return_address
|
data/lib/shopify_app/version.rb
CHANGED
data/package.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopify_app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 13.
|
4
|
+
version: 13.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: browser_sniffer
|