ruby-saml-mod 0.1.14 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,7 +33,7 @@ module Onelogin::Saml
33
33
  base64_request = Base64.encode64(deflated_request)
34
34
  encoded_request = CGI.escape(base64_request)
35
35
 
36
- @forward_url = @settings.idp_sso_target_url + "?SAMLRequest=" + encoded_request
36
+ @forward_url = @settings.idp_sso_target_url + (@settings.idp_sso_target_url.include?("?") ? "&" : "?") + "SAMLRequest=" + encoded_request
37
37
  end
38
38
 
39
39
  private
@@ -26,9 +26,9 @@ module Onelogin::Saml
26
26
  base64_logout_request = Base64.encode64(deflated_logout_request)
27
27
  encoded_logout_request = CGI.escape(base64_logout_request)
28
28
 
29
- @forward_url = @settings.idp_slo_target_url + "?SAMLRequest=" + encoded_logout_request
29
+ @forward_url = @settings.idp_slo_target_url + (@settings.idp_slo_target_url.include?("?") ? "&" : "?") + "SAMLRequest=" + encoded_logout_request
30
30
 
31
31
  @forward_url
32
32
  end
33
33
  end
34
- end
34
+ end
@@ -1,9 +1,9 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{ruby-saml-mod}
3
- s.version = "0.1.14"
3
+ s.version = "0.1.15"
4
4
 
5
5
  s.authors = ["OneLogin LLC", "Bracken", "Zach", "Cody"]
6
- s.date = %q{2012-05-14}
6
+ s.date = %q{2012-06-20}
7
7
  s.extra_rdoc_files = [
8
8
  "LICENSE"
9
9
  ]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-saml-mod
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 14
10
- version: 0.1.14
9
+ - 15
10
+ version: 0.1.15
11
11
  platform: ruby
12
12
  authors:
13
13
  - OneLogin LLC
@@ -18,7 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2012-05-14 00:00:00 Z
21
+ date: 2012-06-20 00:00:00 Z
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
24
24
  name: libxml-ruby