fb-jwt-auth 0.4.0 → 0.8.0

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: 45ebbebff675bd2afe201e48c9d3d711ae255619511e00318f6cd39aef8094c0
4
- data.tar.gz: e1d51f15d8b8a4a55be59228edce5aa3723b74bd312d0b87f868e81ecd3bcdb3
3
+ metadata.gz: 765333142445f70bd85522e7183b0f57248891776ac42b0421bed857b3dc234a
4
+ data.tar.gz: d248abcd3f5dd390e4e33344c10d758be2607a324b42a0b3e19958a663b76adb
5
5
  SHA512:
6
- metadata.gz: 56e7552bcdede5d4ce45200ab5160a790128e80ee0a6f276d0e4d7f9f4515de14db7a9efab79554df31593ee801e9a983d1af413327427b1c88e184a80e88042
7
- data.tar.gz: 395d1d6f094db54c9411bc20d6804c94ea56f7a52e60a64e4496f6ed75d2bb5bd52817ada3fbc7058a404fa47db4b48b850df16ccb9a4ae96236b4591a13d2c6
6
+ metadata.gz: 8f5dee06eec68e3dd47730032292b8d46cad295be9ca9557afd501c4e57dff1335c8e3815a97291023c82820b92d0f822ad6c69ab1b6cdcb138fa8db1d95e133
7
+ data.tar.gz: b67bcbe8cc45f5b01a5ad47d50c696a6e63225fa372f37ff893d9047c51038e7598f6c5618761a1b9ac18946234329fdd0248ecf9158e49c3c919a32ff218b39
data/.circleci/config.yml CHANGED
@@ -5,7 +5,7 @@ orbs:
5
5
  jobs:
6
6
  test:
7
7
  docker:
8
- - image: cimg/ruby:2.7.2
8
+ - image: cimg/ruby:2.7.5
9
9
  steps:
10
10
  - checkout
11
11
  - run:
@@ -21,7 +21,7 @@ jobs:
21
21
  include_job_number_field: false
22
22
  publish:
23
23
  docker:
24
- - image: cimg/ruby:2.7.2
24
+ - image: cimg/ruby:2.7.5
25
25
  steps:
26
26
  - checkout
27
27
  - run:
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.2
1
+ 2.7.5
data/Changelog.md CHANGED
@@ -1,3 +1,18 @@
1
+ # 0.8.0
2
+ * Use Ruby 2.7.5
3
+
4
+ # 0.7.0
5
+ * Use Ruby 2.7.3
6
+
7
+ # 0.6.0
8
+ * Supplier issuer to service token client
9
+
10
+ # 0.5.0
11
+ * Do not base64 decode private key
12
+
13
+ # 0.4.0
14
+ * Generate the access token
15
+
1
16
  # 0.3.0
2
17
  * Request non cached version of public key if first validition fails
3
18
 
@@ -7,19 +7,17 @@ module Fb
7
7
  :subject,
8
8
  :namespace
9
9
 
10
- def initialize(subject: nil)
10
+ def initialize(subject: nil, issuer: nil)
11
11
  @subject = subject
12
12
  @encoded_private_key = Fb::Jwt::Auth.encoded_private_key
13
13
  @namespace = Fb::Jwt::Auth.namespace
14
- @issuer = Fb::Jwt::Auth.issuer
14
+ @issuer = issuer || Fb::Jwt::Auth.issuer
15
15
  end
16
16
 
17
17
  def generate
18
18
  return '' if encoded_private_key.blank?
19
19
 
20
- private_key = OpenSSL::PKey::RSA.new(
21
- Base64.strict_decode64(encoded_private_key.chomp)
22
- )
20
+ private_key = OpenSSL::PKey::RSA.new(encoded_private_key.chomp)
23
21
 
24
22
  JWT.encode(
25
23
  token,
@@ -1,7 +1,7 @@
1
1
  module Fb
2
2
  module Jwt
3
3
  class Auth
4
- VERSION = "0.4.0"
4
+ VERSION = "0.8.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fb-jwt-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Form builder developers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-08 00:00:00.000000000 Z
11
+ date: 2021-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
- rubygems_version: 3.1.4
101
+ rubygems_version: 3.2.32
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: JWT authentication done in form builder team