maestrano-rails 1.0.0.pre.RC6 → 1.0.0.pre.RC7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +2 -2
- data/lib/maestrano/rails/controllers/maestrano_security.rb +15 -3
- data/maestrano-rails.gemspec +5 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 367b1f484295aae1a3dfc42c588d4c134e6c1d1d
|
4
|
+
data.tar.gz: a34329e30c0b9c1bb888f2764eeeecab9a816486
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f06b766c6703c03b3e1a87e983d2b010b7c26fe9da9a62f2479d6b856a2e22f8663614e1474237f30a4b5aa57ae18607aa8d0fcaee6a6f11ea8b2659f99bae2c
|
7
|
+
data.tar.gz: 7633fe1aba8b0b8e0ec1d20825531d619ce934231a92b6ded1fa28fd06ede38cfd16d07b7d7c42b711d55326e72eaa1e94687fd1488e04192c220c8aaa345121
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -104,7 +104,7 @@ GEM
|
|
104
104
|
nokogiri (>= 1.5.9)
|
105
105
|
macaddr (1.7.1)
|
106
106
|
systemu (~> 2.6.2)
|
107
|
-
maestrano (1.0.0.pre.
|
107
|
+
maestrano (1.0.0.pre.RC7)
|
108
108
|
httparty (~> 0.14)
|
109
109
|
json (~> 1.8)
|
110
110
|
mime-types (~> 1.25)
|
@@ -220,7 +220,7 @@ DEPENDENCIES
|
|
220
220
|
haml-rails
|
221
221
|
jeweler
|
222
222
|
jquery-rails
|
223
|
-
maestrano (= 1.0.0.pre.
|
223
|
+
maestrano (= 1.0.0.pre.RC7)
|
224
224
|
mocha (~> 1.1)
|
225
225
|
mongoid
|
226
226
|
pg
|
@@ -17,15 +17,27 @@ module Maestrano
|
|
17
17
|
# its validity. If not valid anymore the filter
|
18
18
|
# triggers a Maestrano SSO handshake
|
19
19
|
def verify_maestrano_session
|
20
|
-
if Maestrano.param(:sso_enabled)
|
20
|
+
if Maestrano[session_preset].param(:sso_enabled)
|
21
21
|
unless controller_name == 'saml' && ['init','consume'].include?(action_name)
|
22
|
-
if !Maestrano::SSO::Session.new(session).valid?(if_session:true)
|
23
|
-
redirect_to Maestrano::SSO.init_url
|
22
|
+
if !Maestrano::SSO::Session[session_preset].new(session).valid?(if_session:true)
|
23
|
+
redirect_to Maestrano::SSO[session_preset].init_url
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
27
27
|
true
|
28
28
|
end
|
29
|
+
|
30
|
+
def session_preset
|
31
|
+
@session_preset ||= begin
|
32
|
+
mno_session = (self.session[:maestrano] || self.session['maestrano'])
|
33
|
+
if mno_session
|
34
|
+
decrypted_session = JSON.parse(Base64.decode64(mno_session))
|
35
|
+
decrypted_session['preset']
|
36
|
+
else
|
37
|
+
nil
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
29
41
|
end
|
30
42
|
end
|
31
43
|
end
|
data/maestrano-rails.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: maestrano-rails 1.0.0.pre.
|
5
|
+
# stub: maestrano-rails 1.0.0.pre.RC7 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "maestrano-rails"
|
9
|
-
s.version = "1.0.0.pre.
|
9
|
+
s.version = "1.0.0.pre.RC7"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
@@ -61,7 +61,7 @@ Gem::Specification.new do |s|
|
|
61
61
|
s.add_runtime_dependency(%q<jquery-rails>, [">= 0"])
|
62
62
|
s.add_runtime_dependency(%q<haml-rails>, [">= 0"])
|
63
63
|
s.add_runtime_dependency(%q<mongoid>, [">= 0"])
|
64
|
-
s.add_runtime_dependency(%q<maestrano>, ["= 1.0.0.pre.
|
64
|
+
s.add_runtime_dependency(%q<maestrano>, ["= 1.0.0.pre.RC7"])
|
65
65
|
s.add_development_dependency(%q<sqlite3>, [">= 0"])
|
66
66
|
s.add_development_dependency(%q<activerecord-jdbcsqlite3-adapter>, [">= 0"])
|
67
67
|
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
@@ -70,7 +70,7 @@ Gem::Specification.new do |s|
|
|
70
70
|
s.add_dependency(%q<jquery-rails>, [">= 0"])
|
71
71
|
s.add_dependency(%q<haml-rails>, [">= 0"])
|
72
72
|
s.add_dependency(%q<mongoid>, [">= 0"])
|
73
|
-
s.add_dependency(%q<maestrano>, ["= 1.0.0.pre.
|
73
|
+
s.add_dependency(%q<maestrano>, ["= 1.0.0.pre.RC7"])
|
74
74
|
s.add_dependency(%q<sqlite3>, [">= 0"])
|
75
75
|
s.add_dependency(%q<activerecord-jdbcsqlite3-adapter>, [">= 0"])
|
76
76
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
@@ -80,7 +80,7 @@ Gem::Specification.new do |s|
|
|
80
80
|
s.add_dependency(%q<jquery-rails>, [">= 0"])
|
81
81
|
s.add_dependency(%q<haml-rails>, [">= 0"])
|
82
82
|
s.add_dependency(%q<mongoid>, [">= 0"])
|
83
|
-
s.add_dependency(%q<maestrano>, ["= 1.0.0.pre.
|
83
|
+
s.add_dependency(%q<maestrano>, ["= 1.0.0.pre.RC7"])
|
84
84
|
s.add_dependency(%q<sqlite3>, [">= 0"])
|
85
85
|
s.add_dependency(%q<activerecord-jdbcsqlite3-adapter>, [">= 0"])
|
86
86
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maestrano-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.pre.
|
4
|
+
version: 1.0.0.pre.RC7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arnaud Lachaume
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 1.0.0.pre.
|
75
|
+
version: 1.0.0.pre.RC7
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 1.0.0.pre.
|
82
|
+
version: 1.0.0.pre.RC7
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: sqlite3
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|