omniauth-shopify-oauth2 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.md +1 -0
- data/example/Gemfile +1 -1
- data/example/config.ru +2 -1
- data/lib/omniauth/shopify/version.rb +1 -1
- data/lib/omniauth/strategies/shopify.rb +8 -0
- metadata +2 -2
- metadata.gz.sig +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 306d7810c126a0e99bf80f437726d22576178cab
|
4
|
+
data.tar.gz: 5ba33d8271dfcf92f542e04e7a8ddafcfc0e49e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89a3cb9ea64f06a33e623fbd9368dd77ebaf2d5284cceef17cfeb68c54e8bf464ae72170e053c562d52a353a17b95574806d8361478896129d431e7a617befe9
|
7
|
+
data.tar.gz: 54919d9f8729c51df48175dff1d2881b58c775fc97402fef5ad7d69c94e29851f2a3c99f91b0701a563e3741517f79c8f36f81d35d51f6122505bcfe214d0d23
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -52,6 +52,7 @@ Here's an example *Authentication Hash* available in `request.env['omniauth.auth
|
|
52
52
|
```ruby
|
53
53
|
{
|
54
54
|
:provider => 'shopify',
|
55
|
+
:uid => 'example.myshopify.com',
|
55
56
|
:credentials => {
|
56
57
|
:token => 'afasd923kjh0934kf', # OAuth 2.0 access_token, which you store and use to authenticate API requests
|
57
58
|
}
|
data/example/Gemfile
CHANGED
data/example/config.ru
CHANGED
@@ -13,6 +13,7 @@ class App < Sinatra::Base
|
|
13
13
|
</head>
|
14
14
|
<body>
|
15
15
|
<h3>Authorized</h3>
|
16
|
+
<p>Shop: #{request.env['omniauth.auth'].uid}</p>
|
16
17
|
<p>Token: #{request.env['omniauth.auth']['credentials']['token']}</p>
|
17
18
|
</body>
|
18
19
|
</html>
|
@@ -34,7 +35,7 @@ class App < Sinatra::Base
|
|
34
35
|
end
|
35
36
|
end
|
36
37
|
|
37
|
-
use Rack::Session::Cookie
|
38
|
+
use Rack::Session::Cookie, secret: SecureRandom.hex(64)
|
38
39
|
|
39
40
|
use OmniAuth::Builder do
|
40
41
|
provider :shopify, ENV['SHOPIFY_API_KEY'], ENV['SHOPIFY_SHARED_SECRET'],
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-shopify-oauth2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Odorcic
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
fl3hbtVFTqbOlwL9vy1fudXcolIE/ZTcxQ+er07ZFZdKCXayR9PPs64heamfn0fp
|
31
31
|
TConQSX2BnZdhIEYW+cKzEC/bLc=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
33
|
+
date: 2015-05-12 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: omniauth-oauth2
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
���w�`&k�b)5���x���I`?3�7������cR?4n��N��1�����I��)PYt3D*V���g����wb,���yLSh?�2�W��%%aD�9���Y���PKk�e
|
2
|
+
��������m-4LDVI����
|
3
|
+
��V.�ЫD�iX�]���5y�k��ldY((�=qA�x�����ȐB�'��s���~:����j�q�NY���&�n aD?�|��m+��6�F�<-�@Wz�f����˒��;��Qc
|