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 +4 -4
- data/README.md +5 -0
- data/lib/omniauth/jwt/version.rb +1 -1
- data/lib/omniauth/strategies/jwt.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65e08afde523849b3c0e5a5b0de11fbc93e8a82a6b8a10f1bc8f8160074566bc
|
4
|
+
data.tar.gz: 2e5ee8bbc739b4385e19993eab0686f24dd7cb67d85e7b6fc07c5fc497b2dec2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8590c9af31c8bb23f26c7a14d1f9750b535f2df161ef8304d5b34e85a9e7583bdd1400adff1242b0556e51b5a0bab2388f2b17848e989d56a8d5bdbf4a44874
|
7
|
+
data.tar.gz: e0833e7789cc8aef5f1499fc597a51339745a534ff672aeed6fb7076b60035eb2ca1ab8cb043a288e480a4ddb99e30e24fd0203cdfff4da11779959e3f3d4d99
|
data/README.md
CHANGED
data/lib/omniauth/jwt/version.rb
CHANGED
@@ -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)
|