rack-saml 0.1.2 → 0.1.3

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
  SHA1:
3
- metadata.gz: 351da5cbd3ac2dee0229017a33144a4263d1ed2d
4
- data.tar.gz: 71724a4318c0f7765f32346bcfa0e61ad7b017fc
3
+ metadata.gz: 28eaa81f02dd866be48fd486a0c2d6c5fcf00fe8
4
+ data.tar.gz: 1c6432075072eb9256c213e72694fc731b88a8c3
5
5
  SHA512:
6
- metadata.gz: 9a70cc5feb6435a22310849406420d3ad3fc8faab1e0f1218c38656d428ae89b0141d96c1f8125787d588ffb8b2b617c43ce7274c8b183ce862c2a4a55a5beff
7
- data.tar.gz: 062c93f2dc4060cbe67dcd86dfd5947efaade19dff67689372307cf1d178b79e84dbc5a967c374e368a804324459757fc7cc46716fe7a5d2eb18c4cb31099fba
6
+ metadata.gz: acffe041368a765aec929c2efd87ab74e1ef0cc4294993faf88b9841804d3266c8a71279cbd04177b9dc315707c2f817b0f9d869d8d5f9bdd5750bbf1d8c3996
7
+ data.tar.gz: c23aace84d60bb84d8c80ed4ecf0a76cd6c70fe0360fa53af44fb8e353f66c256257e72e2406ba202ff8a2305b7e44e54979a419725fbf5ee689ff01e816bad3
data/Gemfile.lock ADDED
@@ -0,0 +1,47 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rack-saml (0.1.3)
5
+ rack
6
+ ruby-saml (~> 0.8.0)
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ diff-lcs (1.2.5)
12
+ macaddr (1.7.1)
13
+ systemu (~> 2.6.2)
14
+ mini_portile (0.6.2)
15
+ nokogiri (1.6.6.2)
16
+ mini_portile (~> 0.6.0)
17
+ rack (1.6.0)
18
+ rack-test (0.6.3)
19
+ rack (>= 1.0)
20
+ rake (10.4.2)
21
+ rspec (3.1.0)
22
+ rspec-core (~> 3.1.0)
23
+ rspec-expectations (~> 3.1.0)
24
+ rspec-mocks (~> 3.1.0)
25
+ rspec-core (3.1.7)
26
+ rspec-support (~> 3.1.0)
27
+ rspec-expectations (3.1.2)
28
+ diff-lcs (>= 1.2.0, < 2.0)
29
+ rspec-support (~> 3.1.0)
30
+ rspec-mocks (3.1.3)
31
+ rspec-support (~> 3.1.0)
32
+ rspec-support (3.1.2)
33
+ ruby-saml (0.8.2)
34
+ nokogiri (>= 1.5.0)
35
+ uuid (~> 2.3)
36
+ systemu (2.6.4)
37
+ uuid (2.3.7)
38
+ macaddr (~> 1.0)
39
+
40
+ PLATFORMS
41
+ ruby
42
+
43
+ DEPENDENCIES
44
+ rack-saml!
45
+ rack-test
46
+ rake
47
+ rspec
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # SAML (Shibboleth) SP middleware for Rack
2
2
 
3
+ [![Gem Version](http://img.shields.io/gem/v/rack-saml.svg)](http://rubygems.org/gems/rack-saml)
4
+ [![Build Status](https://travis-ci.org/toyokazu/rack-saml.svg?branch=master)](https://travis-ci.org/toyokazu/rack-saml)
5
+
3
6
  This project is deeply inspired by rack-shibboleth and ruby-saml. It is recommended to use the de facto SAML implementation such as OpenSAML from the security or the functional aspect. However, there are also requirements to use SAML for light weight applications implemented by Ruby. rack-shibboleth may be a candidate to support such kind of objective. However it lacks the configurability to fit OmniAuth and OmniAuth Shibboleth Strategy. It also lacks the upgrade path to the secure and the stable SAML implementation like OpenSAML. So thus I just implemented a prototype to support SAML (Shibboleth SP) for Rack middleware.
4
7
 
5
8
  OmniAuth Shibboleth Strategy
@@ -10,7 +13,7 @@ rack-saml uses external libraries to generate and validate SAML AuthnRequest/Res
10
13
  ## Changes
11
14
 
12
15
  * version 0.0.2: SP session is supported using Rack::Session for Rack applications and ActionDispatch::Session for Rails applications.
13
- * version 0.1.1: Update to fit newer ruby-saml.
16
+ * version 0.1.2: Update to fit newer ruby-saml.
14
17
 
15
18
  ## Limitations
16
19
 
data/lib/rack/saml.rb CHANGED
@@ -144,7 +144,7 @@ module Rack
144
144
  # generate saml_sp from request uri and default path (rack-saml-sp)
145
145
  saml_sp_prefix = "#{request.scheme}://#{request.host}#{":#{request.port}" if request.port}#{request.script_name}"
146
146
  @config['saml_sp'] ||= "#{saml_sp_prefix}/rack-saml-sp"
147
- @config['assertion_consumer_service_uri'] = "#{saml_sp_prefix}#{@config['protected_path']}"
147
+ @config['assertion_consumer_service_uri'] ||= "#{saml_sp_prefix}#{@config['protected_path']}"
148
148
  # for debug
149
149
  #return [
150
150
  # 403,
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Saml
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
data/rack-saml.gemspec CHANGED
@@ -4,6 +4,8 @@ require File.expand_path('../lib/rack-saml/version', __FILE__)
4
4
  Gem::Specification.new do |gem|
5
5
  gem.add_dependency 'rack'
6
6
  gem.add_dependency 'ruby-saml', '~> 0.8.0'
7
+ gem.add_development_dependency 'rack-test'
8
+ gem.add_development_dependency 'rake'
7
9
  gem.add_development_dependency 'rspec'
8
10
 
9
11
  gem.license = 'MIT'
@@ -15,9 +17,7 @@ Gem::Specification.new do |gem|
15
17
  gem.homepage = ""
16
18
 
17
19
  gem.files = `find . -not \\( -regex ".*\\.git.*" -o -regex "\\./pkg.*" -o -regex "\\./spec.*" \\)`.split("\n").map{ |f| f.gsub(/^.\//, '') }
18
- #gem.files = `find .`.split("\n").map{ |f| f.gsub(/^.\//, '') }
19
20
  gem.test_files = `find spec/*`.split("\n")
20
- #gem.test_files = `find test/* spec/* features/*`.split("\n")
21
21
  gem.name = "rack-saml"
22
22
  gem.require_paths = ["lib"]
23
23
  gem.version = Rack::Saml::VERSION
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-saml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toyokazu Akiyama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-08 00:00:00.000000000 Z
11
+ date: 2015-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -38,6 +38,34 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.8.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: rack-test
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: rspec
43
71
  requirement: !ruby/object:Gem::Requirement
@@ -60,6 +88,7 @@ extensions: []
60
88
  extra_rdoc_files: []
61
89
  files:
62
90
  - Gemfile
91
+ - Gemfile.lock
63
92
  - README.md
64
93
  - Rakefile
65
94
  - bin/conv_metadata.rb
@@ -104,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
133
  version: '0'
105
134
  requirements: []
106
135
  rubyforge_project:
107
- rubygems_version: 2.3.0
136
+ rubygems_version: 2.4.5
108
137
  signing_key:
109
138
  specification_version: 4
110
139
  summary: SAML middleware for Rack (using ruby-saml)