shopify_app 8.3.0 → 8.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/README.md +11 -1
- data/lib/shopify_app/configuration.rb +2 -1
- data/lib/shopify_app/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abcc9d282beed2805f245a2e0b197d1e5e59900d
|
4
|
+
data.tar.gz: 3827b9d0549fae0ab7d8f483e55d28ee264e9c1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 653f0391a5f87f598625ca15822b60107e28383ee77afeaeab22b2d010c51fa93d41e046f82ffa10d76372b8561ff5949ff456d46277552d11e59081ea96fad0
|
7
|
+
data.tar.gz: 9ed1d21431bbec3385c41d6795cde2582eaeba2f557b749c4753e0017af1a511677f9642d8e03b06722565de0101752a7f51114784ca8dca544477fe769ad38b
|
data/CHANGELOG.md
CHANGED
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)
|
data/lib/shopify_app/version.rb
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: 8.3.
|
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-
|
11
|
+
date: 2018-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|