fb-jwt-auth 0.8.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.circleci/config.yml +24 -5
- data/.github/CODEOWNERS +1 -0
- data/.github/dependabot.yml +9 -0
- data/.github/workflows/codeql_analysis.yml +49 -0
- data/.ruby-version +1 -1
- data/Changelog.md +9 -0
- data/Gemfile +6 -2
- data/fb-jwt-auth.gemspec +1 -1
- data/lib/fb/jwt/auth/version.rb +1 -1
- data/lib/fb/jwt/auth.rb +1 -1
- metadata +86 -79
- data/.travis.yml +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 55697b5bd45f0c8df0eaf7aa50f00d8ab14927f9fc2aafc341b20cfa04c1d426
|
|
4
|
+
data.tar.gz: aba8f4a09d9c3ed8942b99a623d8aac797d46e22702b1bd4fb5fd29fd727451e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec7b9843f84c7e33eb95515e18133768d85862e2ee3b90f94187a2b723a75afd0f87353b8ce1d40470c6700c137b0381b8af73473afe9018271d65330bc9eb53
|
|
7
|
+
data.tar.gz: 9dd120432c227992f2c89cbbb3754829f6c334c621833e6164b046c86cb68257e07d9f5d2ddab794cd57e040f39d06a4b8ffb1cfc123e44e2901bab058ee92f9
|
data/.circleci/config.yml
CHANGED
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
version: 2.1
|
|
2
|
+
|
|
3
|
+
parameters:
|
|
4
|
+
ruby-version:
|
|
5
|
+
type: string
|
|
6
|
+
default: "4.0.10"
|
|
7
|
+
|
|
2
8
|
orbs:
|
|
3
9
|
slack: circleci/slack@3.4.2
|
|
4
10
|
|
|
5
11
|
jobs:
|
|
6
12
|
test:
|
|
7
13
|
docker:
|
|
8
|
-
- image: cimg/ruby
|
|
14
|
+
- image: cimg/ruby:<< pipeline.parameters.ruby-version >>
|
|
9
15
|
steps:
|
|
16
|
+
- add_ssh_keys:
|
|
17
|
+
fingerprints:
|
|
18
|
+
- "SHA256:N1WMlg3YIj6trU2mkUDjwhivVGdTgzqVBt7OuQ1WgT0"
|
|
10
19
|
- checkout
|
|
11
20
|
- run:
|
|
12
21
|
name: Install
|
|
13
|
-
command:
|
|
22
|
+
command: |
|
|
23
|
+
gem install bundler -v 4.0.24
|
|
24
|
+
bundle install
|
|
14
25
|
- run:
|
|
15
26
|
name: Test
|
|
16
27
|
command: bundle exec rspec
|
|
@@ -21,12 +32,17 @@ jobs:
|
|
|
21
32
|
include_job_number_field: false
|
|
22
33
|
publish:
|
|
23
34
|
docker:
|
|
24
|
-
- image: cimg/ruby
|
|
35
|
+
- image: cimg/ruby:<< pipeline.parameters.ruby-version >>
|
|
25
36
|
steps:
|
|
37
|
+
- add_ssh_keys:
|
|
38
|
+
fingerprints:
|
|
39
|
+
- "SHA256:N1WMlg3YIj6trU2mkUDjwhivVGdTgzqVBt7OuQ1WgT0"
|
|
26
40
|
- checkout
|
|
27
41
|
- run:
|
|
28
42
|
name: Install
|
|
29
|
-
command:
|
|
43
|
+
command: |
|
|
44
|
+
gem install bundler -v 4.0.24
|
|
45
|
+
bundle install
|
|
30
46
|
- run:
|
|
31
47
|
name: Setup Rubygems
|
|
32
48
|
command: |
|
|
@@ -52,8 +68,11 @@ jobs:
|
|
|
52
68
|
workflows:
|
|
53
69
|
commit-workflow:
|
|
54
70
|
jobs:
|
|
55
|
-
- test
|
|
71
|
+
- test:
|
|
72
|
+
context: &moj-forms-context
|
|
73
|
+
- moj-forms
|
|
56
74
|
- publish:
|
|
75
|
+
context: *moj-forms-context
|
|
57
76
|
requires:
|
|
58
77
|
- test
|
|
59
78
|
filters:
|
data/.github/CODEOWNERS
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @ministryofjustice/form-builder-pr-reviewers
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: "CodeQL"
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ '**' ]
|
|
8
|
+
schedule:
|
|
9
|
+
- cron: '43 20 * * 0'
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
analyze:
|
|
13
|
+
name: Analyze
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
permissions:
|
|
16
|
+
actions: read
|
|
17
|
+
contents: read
|
|
18
|
+
security-events: write
|
|
19
|
+
|
|
20
|
+
strategy:
|
|
21
|
+
fail-fast: false
|
|
22
|
+
matrix:
|
|
23
|
+
language: [ 'ruby' ]
|
|
24
|
+
|
|
25
|
+
steps:
|
|
26
|
+
- name: Checkout repository
|
|
27
|
+
uses: actions/checkout@v2
|
|
28
|
+
|
|
29
|
+
- name: Initialize CodeQL
|
|
30
|
+
uses: github/codeql-action/init@v1
|
|
31
|
+
with:
|
|
32
|
+
languages: ${{ matrix.language }}
|
|
33
|
+
|
|
34
|
+
- name: Autobuild
|
|
35
|
+
uses: github/codeql-action/autobuild@v1
|
|
36
|
+
|
|
37
|
+
# ℹ️ Command-line programs to run using the OS shell.
|
|
38
|
+
# 📚 https://git.io/JvXDl
|
|
39
|
+
|
|
40
|
+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
|
41
|
+
# and modify them (or add more) to build your code if your project
|
|
42
|
+
# uses a compiled language
|
|
43
|
+
|
|
44
|
+
#- run: |
|
|
45
|
+
# make bootstrap
|
|
46
|
+
# make release
|
|
47
|
+
|
|
48
|
+
- name: Perform CodeQL Analysis
|
|
49
|
+
uses: github/codeql-action/analyze@v1
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
4.0.10
|
data/Changelog.md
CHANGED
data/Gemfile
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
source "https://rubygems.org"
|
|
2
2
|
|
|
3
|
+
ruby file: ".ruby-version"
|
|
4
|
+
|
|
3
5
|
# Specify your gem's dependencies in fb-jwt-auth.gemspec
|
|
4
6
|
gemspec
|
|
5
7
|
|
|
6
|
-
gem "rake"
|
|
7
|
-
gem "rspec"
|
|
8
|
+
gem "rake"
|
|
9
|
+
gem "rspec"
|
|
8
10
|
gem 'byebug'
|
|
11
|
+
gem 'simplecov'
|
|
12
|
+
gem 'simplecov-console'
|
data/fb-jwt-auth.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.description = %q{JWT authentication done in all apps in form builder}
|
|
11
11
|
spec.homepage = 'https://github.com/ministryofjustice/fb-jwt-auth'
|
|
12
12
|
spec.license = "MIT"
|
|
13
|
-
spec.required_ruby_version = Gem::Requirement.new(">=
|
|
13
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 4.0.10")
|
|
14
14
|
|
|
15
15
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
16
16
|
spec.metadata["source_code_uri"] = "https://github.com/ministryofjustice/fb-jwt-auth"
|
data/lib/fb/jwt/auth/version.rb
CHANGED
data/lib/fb/jwt/auth.rb
CHANGED
metadata
CHANGED
|
@@ -1,105 +1,112 @@
|
|
|
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.11.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- Form builder developers
|
|
8
|
-
autorequire:
|
|
7
|
+
- Form builder developers
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
- !ruby/object:Gem::
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: jwt
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
-
|
|
17
|
+
- ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: "0"
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
-
|
|
25
|
+
- ">="
|
|
26
|
+
- !ruby/object:Gem::Version
|
|
27
|
+
version: "0"
|
|
28
|
+
- !ruby/object:Gem::Dependency
|
|
29
|
+
name: json
|
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
-
|
|
33
|
+
- ">="
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: "0"
|
|
36
|
+
type: :runtime
|
|
37
|
+
prerelease: false
|
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
39
|
+
requirements:
|
|
40
|
+
-
|
|
41
|
+
- ">="
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: "0"
|
|
44
|
+
- !ruby/object:Gem::Dependency
|
|
45
|
+
name: activesupport
|
|
46
|
+
requirement: !ruby/object:Gem::Requirement
|
|
47
|
+
requirements:
|
|
48
|
+
-
|
|
49
|
+
- ">="
|
|
50
|
+
- !ruby/object:Gem::Version
|
|
51
|
+
version: "0"
|
|
52
|
+
type: :runtime
|
|
53
|
+
prerelease: false
|
|
54
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
55
|
+
requirements:
|
|
56
|
+
-
|
|
57
|
+
- ">="
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: "0"
|
|
55
60
|
description: JWT authentication done in all apps in form builder
|
|
56
61
|
email:
|
|
57
|
-
- form-builder-developers@digital.justice.gov.uk
|
|
62
|
+
- form-builder-developers@digital.justice.gov.uk
|
|
58
63
|
executables: []
|
|
59
64
|
extensions: []
|
|
60
65
|
extra_rdoc_files: []
|
|
61
66
|
files:
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
70
|
-
-
|
|
71
|
-
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
- lib/fb/jwt/auth
|
|
78
|
-
- lib/fb/jwt/auth/
|
|
79
|
-
|
|
67
|
+
- .circleci/config.yml
|
|
68
|
+
- .github/CODEOWNERS
|
|
69
|
+
- .github/dependabot.yml
|
|
70
|
+
- .github/workflows/codeql_analysis.yml
|
|
71
|
+
- .gitignore
|
|
72
|
+
- .rspec
|
|
73
|
+
- .ruby-version
|
|
74
|
+
- Changelog.md
|
|
75
|
+
- Gemfile
|
|
76
|
+
- LICENSE.txt
|
|
77
|
+
- README.md
|
|
78
|
+
- Rakefile
|
|
79
|
+
- bin/console
|
|
80
|
+
- bin/setup
|
|
81
|
+
- fb-jwt-auth.gemspec
|
|
82
|
+
- lib/fb/jwt/auth.rb
|
|
83
|
+
- lib/fb/jwt/auth/service_access_token.rb
|
|
84
|
+
- lib/fb/jwt/auth/service_token_client.rb
|
|
85
|
+
- lib/fb/jwt/auth/version.rb
|
|
86
|
+
homepage: "https://github.com/ministryofjustice/fb-jwt-auth"
|
|
80
87
|
licenses:
|
|
81
|
-
- MIT
|
|
88
|
+
- MIT
|
|
82
89
|
metadata:
|
|
83
|
-
homepage_uri: https://github.com/ministryofjustice/fb-jwt-auth
|
|
84
|
-
source_code_uri: https://github.com/ministryofjustice/fb-jwt-auth
|
|
85
|
-
changelog_uri: https://github.com/ministryofjustice/fb-jwt-auth/blob/main/Changelog.md
|
|
86
|
-
post_install_message:
|
|
90
|
+
homepage_uri: "https://github.com/ministryofjustice/fb-jwt-auth"
|
|
91
|
+
source_code_uri: "https://github.com/ministryofjustice/fb-jwt-auth"
|
|
92
|
+
changelog_uri: "https://github.com/ministryofjustice/fb-jwt-auth/blob/main/Changelog.md"
|
|
87
93
|
rdoc_options: []
|
|
88
94
|
require_paths:
|
|
89
|
-
- lib
|
|
95
|
+
- lib
|
|
90
96
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
91
97
|
requirements:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
98
|
+
-
|
|
99
|
+
- ">="
|
|
100
|
+
- !ruby/object:Gem::Version
|
|
101
|
+
version: 4.0.10
|
|
95
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
103
|
requirements:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
104
|
+
-
|
|
105
|
+
- ">="
|
|
106
|
+
- !ruby/object:Gem::Version
|
|
107
|
+
version: "0"
|
|
100
108
|
requirements: []
|
|
101
|
-
rubygems_version:
|
|
102
|
-
signing_key:
|
|
109
|
+
rubygems_version: 4.1.0
|
|
103
110
|
specification_version: 4
|
|
104
111
|
summary: JWT authentication done in form builder team
|
|
105
112
|
test_files: []
|