shopify_app 8.3.0 → 8.3.1

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
  SHA1:
3
- metadata.gz: 67993e953b33ffe850f9db651c7ecc411d5933b2
4
- data.tar.gz: ca5981beba2ea540681d77363dc1ae6c4bd009de
3
+ metadata.gz: abcc9d282beed2805f245a2e0b197d1e5e59900d
4
+ data.tar.gz: 3827b9d0549fae0ab7d8f483e55d28ee264e9c1e
5
5
  SHA512:
6
- metadata.gz: 7665bf0987e8738cbeb9d8c0e92fa3e3d2055ffe60c80d6b50795d7f2db83e18d7df4fb89da81fc6226cacfc6fbb7fe0059d34a36071d5e90f259cb870004444
7
- data.tar.gz: 353060a370d4ba42c86ebc95b0d09f1ee32d3eb106db177df4dec3f2580e0acb30fef419715db35b3a023337d2dd7874718a2e3277ea0729fbb52676394ba72e
6
+ metadata.gz: 653f0391a5f87f598625ca15822b60107e28383ee77afeaeab22b2d010c51fa93d41e046f82ffa10d76372b8561ff5949ff456d46277552d11e59081ea96fad0
7
+ data.tar.gz: 9ed1d21431bbec3385c41d6795cde2582eaeba2f557b749c4753e0017af1a511677f9642d8e03b06722565de0101752a7f51114784ca8dca544477fe769ad38b
@@ -1,3 +1,7 @@
1
+ 8.3.1
2
+ ----
3
+ * Adds the ability to customize the login URL through the initializer
4
+
1
5
  8.3.0
2
6
  ----
3
7
  * Fix embedded app session management in Safari 12
data/README.md CHANGED
@@ -209,6 +209,16 @@ provider :shopify,
209
209
  callback_path: '/nested/auth/shopify/callback'
210
210
  ```
211
211
 
212
+ ### Custom login URL
213
+
214
+ While you can customize the login view by creating a `/app/views/shopify_app/sessions/new.html.erb` file, you may also want to customize the URL entirely. You can modify your `shopify_app.rb` initializer to provide a custom `login_url` e.g.:
215
+
216
+ ```ruby
217
+ ShopifyApp.configure do |config|
218
+ config.login_url = 'https://my.domain.com/nested/login'
219
+ end
220
+ ```
221
+
212
222
  Per User Authentication
213
223
  -----------------------
214
224
  To enable per user authentication you need to update the `omniauth.rb` initializer:
@@ -316,7 +326,7 @@ As with webhooks, ShopifyApp can manage your app's scripttags for you by setting
316
326
  ```ruby
317
327
  ShopifyApp.configure do |config|
318
328
  config.scripttags = [
319
- {event:'onload', src: 'https://my-shopifyapp.herokuapp.com/fancy.js'}
329
+ {event:'onload', src: 'https://my-shopifyapp.herokuapp.com/fancy.js'},
320
330
  {event:'onload', src: ->(domain) { dynamic_tag_url(domain) } }
321
331
  ]
322
332
  end
@@ -17,6 +17,7 @@ module ShopifyApp
17
17
 
18
18
  # customise urls
19
19
  attr_accessor :root_url
20
+ attr_accessor :login_url
20
21
 
21
22
  # customise ActiveJob queue names
22
23
  attr_accessor :scripttags_manager_queue_name
@@ -36,7 +37,7 @@ module ShopifyApp
36
37
  end
37
38
 
38
39
  def login_url
39
- File.join(@root_url, 'login')
40
+ @login_url || File.join(@root_url, 'login')
40
41
  end
41
42
 
42
43
  def session_repository=(klass)
@@ -1,3 +1,3 @@
1
1
  module ShopifyApp
2
- VERSION = '8.3.0'.freeze
2
+ VERSION = '8.3.1'.freeze
3
3
  end
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: 8.3.0
4
+ version: 8.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: 2018-09-10 00:00:00.000000000 Z
11
+ date: 2018-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails