maestrano-rails 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/app/controllers/maestrano/rails/saml_base_controller.rb +5 -5
- data/maestrano-rails.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dad98c4572ee0e02a6c38104c3d832383842adc1
|
4
|
+
data.tar.gz: 6339afcd241f2c449a18fd1f8f0c472cc83bae10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bd5f3f17ca93aa20e68fd76a54c7b12e0ffe88b0ec39ef1254f38cffde0563989ab2c878a09db1ff72988e02a5cbed7bfff6616a8f7edfb1b92a61e7830a3f7
|
7
|
+
data.tar.gz: 2f51637f40ef111c6cfc32aea8e3472b965f6354f8c17cef9ab42797e59746859b3420ed6383868bbf4469735ca2215838c55422a26dbe82475640aa5260b804
|
data/Gemfile.lock
CHANGED
@@ -51,7 +51,7 @@ GEM
|
|
51
51
|
database_cleaner (1.5.3)
|
52
52
|
descendants_tracker (0.0.4)
|
53
53
|
thread_safe (~> 0.3, >= 0.3.1)
|
54
|
-
domain_name (0.5.
|
54
|
+
domain_name (0.5.20170404)
|
55
55
|
unf (>= 0.0.5, < 1.0.0)
|
56
56
|
erubis (2.7.0)
|
57
57
|
faraday (0.9.2)
|
@@ -84,7 +84,7 @@ GEM
|
|
84
84
|
ruby_parser (~> 3.5)
|
85
85
|
http-cookie (1.0.3)
|
86
86
|
domain_name (~> 0.5)
|
87
|
-
httparty (0.
|
87
|
+
httparty (0.15.5)
|
88
88
|
multi_xml (>= 0.5.2)
|
89
89
|
i18n (0.7.0)
|
90
90
|
jeweler (2.3.2)
|
@@ -108,7 +108,7 @@ GEM
|
|
108
108
|
nokogiri (>= 1.5.9)
|
109
109
|
macaddr (1.7.1)
|
110
110
|
systemu (~> 2.6.2)
|
111
|
-
maestrano (1.0.
|
111
|
+
maestrano (1.0.5)
|
112
112
|
httparty (~> 0.14)
|
113
113
|
json (~> 1.8)
|
114
114
|
mime-types (~> 1.25)
|
@@ -208,7 +208,7 @@ GEM
|
|
208
208
|
thread_safe (~> 0.1)
|
209
209
|
unf (0.1.4)
|
210
210
|
unf_ext
|
211
|
-
unf_ext (0.0.7.
|
211
|
+
unf_ext (0.0.7.4)
|
212
212
|
uuid (2.3.8)
|
213
213
|
macaddr (~> 1.0)
|
214
214
|
|
@@ -233,4 +233,4 @@ DEPENDENCIES
|
|
233
233
|
test-unit (~> 3)
|
234
234
|
|
235
235
|
BUNDLED WITH
|
236
|
-
1.
|
236
|
+
1.15.1
|
@@ -2,14 +2,14 @@ class Maestrano::Rails::SamlBaseController < ApplicationController
|
|
2
2
|
attr_reader :saml_response, :user_auth_hash, :group_auth_hash, :user_group_rel_hash
|
3
3
|
protect_from_forgery :except => [:consume]
|
4
4
|
around_filter :saml_response_transaction, only: [:consume]
|
5
|
-
|
5
|
+
|
6
6
|
# GET /maestrano/auth/saml/init/:tenant
|
7
7
|
#
|
8
8
|
# Initialize the SAML request and redirects the user to Maestrano
|
9
9
|
def init
|
10
10
|
redirect_to Maestrano::Saml::Request[params[:tenant]].new(params, session).redirect_url
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
13
|
#===================================
|
14
14
|
# Helper methods
|
15
15
|
#===================================
|
@@ -28,15 +28,15 @@ class Maestrano::Rails::SamlBaseController < ApplicationController
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
31
|
-
|
31
|
+
|
32
32
|
def process_saml_response
|
33
33
|
if params[:SAMLResponse]
|
34
34
|
@saml_response = Maestrano::Saml::Response[params[:tenant]].new(params[:SAMLResponse])
|
35
35
|
if @saml_response.validate!
|
36
|
-
@user_auth_hash = Maestrano::SSO::BaseUser.new(@saml_response).to_hash
|
36
|
+
@user_auth_hash = Maestrano::SSO::BaseUser[params[:tenant]].new(@saml_response).to_hash
|
37
37
|
@group_auth_hash = Maestrano::SSO::BaseGroup.new(@saml_response).to_hash
|
38
38
|
@user_group_rel_hash = Maestrano::SSO::BaseMembership.new(@saml_response).to_hash
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
42
|
-
end
|
42
|
+
end
|
data/maestrano-rails.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
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.
|
5
|
+
# stub: maestrano-rails 1.0.4 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "maestrano-rails".freeze
|
9
|
-
s.version = "1.0.
|
9
|
+
s.version = "1.0.4"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Arnaud Lachaume".freeze]
|
14
|
-
s.date = "2017-
|
14
|
+
s.date = "2017-07-05"
|
15
15
|
s.description = "Maestrano is the next generation marketplace for SME applications. See https://maestrano.com for details.".freeze
|
16
16
|
s.email = ["arnaud.lachaume@maestrano.com".freeze]
|
17
17
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maestrano-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arnaud Lachaume
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|