discourse-omniauth-jwt-xsolla 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8923f38506b8bbf100624c7b766a75f0ca387140911a105d4e96bb61ac3829b8
4
- data.tar.gz: 20a32280b8cd55875490bb7301397726b759b62df552bfefd39027af17c4ddf0
3
+ metadata.gz: 65e08afde523849b3c0e5a5b0de11fbc93e8a82a6b8a10f1bc8f8160074566bc
4
+ data.tar.gz: 2e5ee8bbc739b4385e19993eab0686f24dd7cb67d85e7b6fc07c5fc497b2dec2
5
5
  SHA512:
6
- metadata.gz: 7a18fec04cdc14504639f260a0c2c52cca5c1d7be2fda5588e003aa284875f6587fa5d4468540442e50a8a1b75de359e2a54a04329b13b54f1ad1523cbd62718
7
- data.tar.gz: 2f9e050894c520ea17b9d384676429e47b120aca3022c5032725811ad38218173bae1ec289cccfecab29c6a710dc9a1680b1544f2db381ffd5f87275d1ae614c
6
+ metadata.gz: f8590c9af31c8bb23f26c7a14d1f9750b535f2df161ef8304d5b34e85a9e7583bdd1400adff1242b0556e51b5a0bab2388f2b17848e989d56a8d5bdbf4a44874
7
+ data.tar.gz: e0833e7789cc8aef5f1499fc597a51339745a534ff672aeed6fb7076b60035eb2ca1ab8cb043a288e480a4ddb99e30e24fd0203cdfff4da11779959e3f3d4d99
data/README.md CHANGED
@@ -0,0 +1,5 @@
1
+
2
+ # билдим
3
+ gem build discourse-omniauth-jwt-xsolla.gemspec
4
+ # пушим в registry
5
+ gem push discourse-omniauth-jwt-xsolla-0.2.0.gem
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module JWT
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
@@ -27,7 +27,7 @@ module OmniAuth
27
27
  def decoded
28
28
  @decoded ||= ::JWT.decode(request.params['token'], options.secret, false, {algorithm: options.algorithm})[0]
29
29
  uri = URI('https://login.xsolla.com/api/token/validate')
30
-
30
+ http = Net::HTTP.new(uri.host, uri.port)
31
31
  req = Net::HTTP::Post.new(uri, 'Content-Type' => 'application/json')
32
32
  req.body = {token: request.params['token']}.to_json
33
33
  res = http.request(req)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discourse-omniauth-jwt-xsolla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh