rails-auth 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/jruby.yml +31 -0
- data/.github/workflows/mri.yml +27 -0
- data/CHANGES.md +6 -0
- data/lib/rails/auth/rack.rb +1 -0
- data/lib/rails/auth/version.rb +1 -1
- data/lib/rails/auth/x509/filter/pem_urlencoded.rb +17 -0
- metadata +6 -4
- data/.travis.yml +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebb7b8700e3c8719cdb65a37efa8e1234b79a35a43fba6dffcb9d427cbf9e2e7
|
4
|
+
data.tar.gz: 46e21ea3735dde1cf16c1242ca1117288bce5a4c4ef5cf0f3669e890fecc5124
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcec7e972d73c52fdcaeef22da67dee25849efaddbf254964b3e73f5179e849ef1bd32e80c1f6520f5502884f27811c0b6bb66278923da67320b38cdfd42464b
|
7
|
+
data.tar.gz: 12a93fbdbfc37c44da69bdbb8b163554dd145364627fb689b5acc530a4ec176f6ac5ee2fa0b502ab594a998ce0fad8664e111aafdd268e0f04571f942d9ce6e1
|
@@ -0,0 +1,31 @@
|
|
1
|
+
name: CI - JRuby
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
java-version:
|
15
|
+
- 8
|
16
|
+
- 11
|
17
|
+
|
18
|
+
steps:
|
19
|
+
- uses: actions/checkout@v2
|
20
|
+
- name: Set up Java
|
21
|
+
uses: actions/setup-java@v2
|
22
|
+
with:
|
23
|
+
distribution: temurin
|
24
|
+
java-version: ${{ matrix.java-version }}
|
25
|
+
- name: Set up Ruby
|
26
|
+
uses: ruby/setup-ruby@v1
|
27
|
+
with:
|
28
|
+
bundler-cache: true
|
29
|
+
ruby-version: jruby
|
30
|
+
- name: Run tests
|
31
|
+
run: bundle exec rake
|
@@ -0,0 +1,27 @@
|
|
1
|
+
name: CI - MRI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby-version:
|
15
|
+
- 2.6
|
16
|
+
- 2.7
|
17
|
+
- 3.0
|
18
|
+
|
19
|
+
steps:
|
20
|
+
- uses: actions/checkout@v2
|
21
|
+
- name: Set up Ruby
|
22
|
+
uses: ruby/setup-ruby@v1
|
23
|
+
with:
|
24
|
+
bundler-cache: true
|
25
|
+
ruby-version: ${{ matrix.ruby-version }}
|
26
|
+
- name: Run tests
|
27
|
+
run: bundle exec rake
|
data/CHANGES.md
CHANGED
data/lib/rails/auth/rack.rb
CHANGED
@@ -24,6 +24,7 @@ require "rails/auth/monitor/middleware"
|
|
24
24
|
|
25
25
|
require "rails/auth/x509/certificate"
|
26
26
|
require "rails/auth/x509/filter/pem"
|
27
|
+
require "rails/auth/x509/filter/pem_urlencoded"
|
27
28
|
require "rails/auth/x509/filter/java" if defined?(JRUBY_VERSION)
|
28
29
|
require "rails/auth/x509/matcher"
|
29
30
|
require "rails/auth/x509/middleware"
|
data/lib/rails/auth/version.rb
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Rails
|
4
|
+
module Auth
|
5
|
+
module X509
|
6
|
+
module Filter
|
7
|
+
# Extract OpenSSL::X509::Certificates from Privacy Enhanced Mail (PEM) certificates
|
8
|
+
# that are URL encoded ($ssl_client_escaped_cert from Nginx).
|
9
|
+
class PemUrlencoded < Pem
|
10
|
+
def call(encoded_pem)
|
11
|
+
super(URI.decode_www_form_component(encoded_pem))
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Arcieri
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -67,10 +67,11 @@ executables: []
|
|
67
67
|
extensions: []
|
68
68
|
extra_rdoc_files: []
|
69
69
|
files:
|
70
|
+
- ".github/workflows/jruby.yml"
|
71
|
+
- ".github/workflows/mri.yml"
|
70
72
|
- ".gitignore"
|
71
73
|
- ".rspec"
|
72
74
|
- ".rubocop.yml"
|
73
|
-
- ".travis.yml"
|
74
75
|
- BUG-BOUNTY.md
|
75
76
|
- CHANGES.md
|
76
77
|
- CONDUCT.md
|
@@ -106,6 +107,7 @@ files:
|
|
106
107
|
- lib/rails/auth/x509/certificate.rb
|
107
108
|
- lib/rails/auth/x509/filter/java.rb
|
108
109
|
- lib/rails/auth/x509/filter/pem.rb
|
110
|
+
- lib/rails/auth/x509/filter/pem_urlencoded.rb
|
109
111
|
- lib/rails/auth/x509/matcher.rb
|
110
112
|
- lib/rails/auth/x509/middleware.rb
|
111
113
|
- lib/rails/auth/x509/subject_alt_name_extension.rb
|
@@ -152,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
154
|
- !ruby/object:Gem::Version
|
153
155
|
version: '0'
|
154
156
|
requirements: []
|
155
|
-
rubygems_version: 3.
|
157
|
+
rubygems_version: 3.1.6
|
156
158
|
signing_key:
|
157
159
|
specification_version: 4
|
158
160
|
summary: Modular resource-oriented authentication and authorization for Rails/Rack
|
data/.travis.yml
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
sudo: false
|
3
|
-
branches:
|
4
|
-
only:
|
5
|
-
- master
|
6
|
-
|
7
|
-
before_install:
|
8
|
-
- gem install bundler
|
9
|
-
|
10
|
-
bundler_args: --without development
|
11
|
-
|
12
|
-
rvm:
|
13
|
-
- 2.4
|
14
|
-
- 2.5
|
15
|
-
- 2.6
|
16
|
-
matrix:
|
17
|
-
include:
|
18
|
-
- rvm: jruby
|
19
|
-
jdk: openjdk8
|
20
|
-
env: JRUBY_OPTS="--debug" # for simplecov
|
21
|
-
- rvm: jruby
|
22
|
-
jdk: openjdk11
|
23
|
-
env: JRUBY_OPTS="--debug" # for simplecov
|
24
|
-
fast_finish: true
|