rails-auth 1.1.0 → 1.2.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/CHANGES.md +10 -0
- data/Gemfile +4 -0
- data/lib/rails/auth/acl.rb +2 -0
- data/lib/rails/auth/version.rb +1 -1
- data/lib/rails/auth/x509/filter/java.rb +3 -2
- data/spec/rails/auth/x509/middleware_spec.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e92a07d5339d2ad6e64b821ba2e1b4026de10c31
|
4
|
+
data.tar.gz: aaac5ccbcf152561ad1e1f682d06f02ecd9f6bb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49a8941a641613a737835bba767ae859afeeed873c6de7034a3ca9d644ee784900fc5bda5f99e2f8d2382c4a86c47087d497f2add7ad0f6b1f38275c3d1cafe4
|
7
|
+
data.tar.gz: 4fc77b8fc2b2200766c8277658a78d790e6acbe1b3b3172fe82b5c18b23c41c732e5e24e3c7007490d9fa6688a30d32db221f7efefe40c224c87d13c58c92ebc
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
### 1.2.0 (2016-07-11)
|
2
|
+
|
3
|
+
* [#28](https://github.com/square/rails-auth/pull/28)
|
4
|
+
Add a attr_reader for Rails::Auth::ACL#resources.
|
5
|
+
([@tarcieri])
|
6
|
+
|
7
|
+
* [#27](https://github.com/square/rails-auth/pull/27)
|
8
|
+
Handle javax.servlet.request.X509Certificate arrays.
|
9
|
+
([@tarcieri])
|
10
|
+
|
1
11
|
### 1.1.0 (2016-06-23)
|
2
12
|
|
3
13
|
* [#26](https://github.com/square/rails-auth/pull/26)
|
data/Gemfile
CHANGED
data/lib/rails/auth/acl.rb
CHANGED
data/lib/rails/auth/version.rb
CHANGED
@@ -7,8 +7,9 @@ module Rails
|
|
7
7
|
module Filter
|
8
8
|
# Extract OpenSSL::X509::Certificates from Java's sun.security.x509.X509CertImpl
|
9
9
|
class Java
|
10
|
-
def call(
|
11
|
-
|
10
|
+
def call(certs)
|
11
|
+
return unless certs
|
12
|
+
OpenSSL::X509::Certificate.new(extract_der(certs[0])).freeze
|
12
13
|
end
|
13
14
|
|
14
15
|
private
|
@@ -48,7 +48,7 @@ RSpec.describe Rails::Auth::X509::Middleware do
|
|
48
48
|
it "extracts Rails::Auth::Credential::X509 from a Java::SunSecurityX509::X509CertImpl" do
|
49
49
|
skip "JRuby only" unless defined?(JRUBY_VERSION)
|
50
50
|
|
51
|
-
_response, env = middleware.call(request.merge(example_key => java_cert))
|
51
|
+
_response, env = middleware.call(request.merge(example_key => [java_cert]))
|
52
52
|
|
53
53
|
credential = Rails::Auth.credentials(env).fetch("x509")
|
54
54
|
expect(credential).to be_a Rails::Auth::X509::Certificate
|
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: 1.
|
4
|
+
version: 1.2.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: 2016-
|
11
|
+
date: 2016-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -144,4 +144,3 @@ signing_key:
|
|
144
144
|
specification_version: 4
|
145
145
|
summary: Modular resource-oriented authentication and authorization for Rails/Rack
|
146
146
|
test_files: []
|
147
|
-
has_rdoc:
|