shopify_app 22.3.0 → 22.3.1
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/Gemfile.lock +1 -1
- data/app/views/shopify_app/shared/redirect.html.erb +5 -0
- data/lib/shopify_app/controller_concerns/login_protection.rb +1 -1
- data/lib/shopify_app/controller_concerns/sanitized_params.rb +4 -0
- data/lib/shopify_app/controller_concerns/token_exchange.rb +1 -5
- 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: 2b4b936b4f5a91a7a73e53ec4e1df8d46d7cd75a67663ade6035524a32b01642
|
4
|
+
data.tar.gz: b9b5b3b9cc461fdee3d9b6447f888e68ed2bcd7e504084550118d2c9929e5072
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c0c813ac266810468a1100dfa7c9baf1af7c889f9a9dc865d796c19baea2d0bcaea7c8f79f6f27e1cbb7fa918f237563eac954735d4dcd77e6aa9f89038b34c
|
7
|
+
data.tar.gz: fe5fdd935be6cf251ab74ecc110178c3a5a07cfdf5aafc7a568db34fea7568bbca218c99c8223d18555079cdc080bd96ba951c4f800937acb94809e3ae89ca0f
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
Unreleased
|
2
2
|
----------
|
3
3
|
|
4
|
+
22.3.1 (July 26, 2024)
|
5
|
+
----------
|
6
|
+
- Handle edge case where we attempted to redirect to login when already at the top level [#1887](https://github.com/Shopify/shopify_app/pull/1887)
|
7
|
+
|
4
8
|
22.3.0 (July 24, 2024)
|
5
9
|
----------
|
6
10
|
- Deprecate `ShopifyApp::JWTMiddleware`. And remove internal usage. Any existing app code relying on decoded JWT contents set from `request.env` should instead include the `WithShopifyIdToken` concern and call its respective methods. [#1861](https://github.com/Shopify/shopify_app/pull/1861) [Migration Guide](/docs/Upgrading.md#v2300---removed-shopifyappjwtmiddleware)
|
data/Gemfile.lock
CHANGED
@@ -6,8 +6,13 @@
|
|
6
6
|
<base target="_top">
|
7
7
|
<title>Redirecting…</title>
|
8
8
|
|
9
|
+
<%
|
10
|
+
is_iframe = local_assigns.key?(:is_iframe) ? is_iframe : true
|
11
|
+
if is_iframe
|
12
|
+
%>
|
9
13
|
<meta name="shopify-api-key" content="<%= ShopifyApp.configuration.api_key %>">
|
10
14
|
<%= javascript_include_tag "https://cdn.shopify.com/shopifycloud/app-bridge.js" %>
|
15
|
+
<% end %>
|
11
16
|
|
12
17
|
<%= javascript_include_tag('shopify_app/redirect', crossorigin: 'anonymous', integrity: true) %>
|
13
18
|
</head>
|
@@ -204,7 +204,7 @@ module ShopifyApp
|
|
204
204
|
render(
|
205
205
|
"shopify_app/shared/redirect",
|
206
206
|
layout: false,
|
207
|
-
locals: { url: url, current_shopify_domain: current_shopify_domain },
|
207
|
+
locals: { url: url, current_shopify_domain: current_shopify_domain, is_iframe: embedded? },
|
208
208
|
)
|
209
209
|
else
|
210
210
|
redirect_to(url)
|
@@ -94,10 +94,6 @@ module ShopifyApp
|
|
94
94
|
)
|
95
95
|
end
|
96
96
|
|
97
|
-
def embedded?
|
98
|
-
params[:embedded] == "1" || request.env["HTTP_SEC_FETCH_DEST"] == "iframe"
|
99
|
-
end
|
100
|
-
|
101
97
|
def online_token_configured?
|
102
98
|
ShopifyApp.configuration.online_token_configured?
|
103
99
|
end
|
@@ -108,7 +104,7 @@ module ShopifyApp
|
|
108
104
|
render(
|
109
105
|
"shopify_app/shared/redirect",
|
110
106
|
layout: false,
|
111
|
-
locals: { url: url, current_shopify_domain: current_shopify_domain },
|
107
|
+
locals: { url: url, current_shopify_domain: current_shopify_domain, is_iframe: embedded? },
|
112
108
|
)
|
113
109
|
end
|
114
110
|
end
|
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: 22.3.
|
4
|
+
version: 22.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeresource
|