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 +4 -4
- data/.circleci/config.yml +2 -2
- data/.ruby-version +1 -1
- data/Changelog.md +15 -0
- data/lib/fb/jwt/auth/service_access_token.rb +3 -5
- data/lib/fb/jwt/auth/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 765333142445f70bd85522e7183b0f57248891776ac42b0421bed857b3dc234a
|
4
|
+
data.tar.gz: d248abcd3f5dd390e4e33344c10d758be2607a324b42a0b3e19958a663b76adb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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,
|
data/lib/fb/jwt/auth/version.rb
CHANGED
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
|
+
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-
|
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.
|
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
|