saml_camel 0.1.9 → 0.2.0

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: dafa06a040a8d7f97edcb980ecfb6448a8963b1c
4
- data.tar.gz: 4ab3a2e992ab871320401e6306ef23e4de7ecbfc
3
+ metadata.gz: d301a7a75f983e4a996abb0c7929c03918e0b9a0
4
+ data.tar.gz: 80c7b4c2083c751a1f384f854af60d5e6e243e1f
5
5
  SHA512:
6
- metadata.gz: 712eab68931a813f9564be234c3ad26d68205b4e578f377ebe0fb5256f1c5dd7b083bd1bc21172d7b73e9e61fb7707cb777835380bb7ffd7b536e401fbd6c8e9
7
- data.tar.gz: cc38766650489a25ce12683eb085d07a7905ea4bd3c01bd4f588858c0ef18683e4f6a2627f645cf0293fc30512bb70cf9a4d57e1d09940184b12f67b32c2bc30
6
+ metadata.gz: 232ceb4b900009acf4ba6df0b73b24dd0a87b726062e5fc6c5bbe9038ee72ddd3561edfaf68fde56d0f21a82721c811ce6051c900c5ba1e401af0b5ad65b0a97
7
+ data.tar.gz: 8cbfe2f298adabff017463fa86fe062d3c7b0ca379167b37214b63714f41deefac2b9ad46c8872e757a4c060f5bda19c99fc3e4a08b14b7bce3e322052631bbe
@@ -25,8 +25,13 @@ module SamlCamel::SamlHelpers
25
25
  def valid_state(param_relay_state, remote_ip)
26
26
  permit_key = session[:saml_session_id].to_sym
27
27
  saml_cache = Rails.cache.fetch(permit_key)
28
- stored_relay = saml_cache[:relay_state]
29
- stored_ip = saml_cache[:ip_address]
28
+
29
+ if saml_cache
30
+ stored_relay = saml_cache[:relay_state]
31
+ stored_ip = saml_cache[:ip_address]
32
+ else
33
+ raise "Unable to access cache. Ensure cache is configrued according to documentation."
34
+ end
30
35
 
31
36
  SamlCamel::Logging.saml_state({stored_relay: stored_relay, request_relay: param_relay_state, stored_ip: stored_ip, remote_ip: remote_ip})
32
37
  param_relay_state == stored_relay && remote_ip == stored_ip
@@ -1,3 +1,3 @@
1
1
  module SamlCamel
2
- VERSION = '0.1.9'
2
+ VERSION = '0.2.0'
3
3
  end
@@ -101,6 +101,7 @@ tA6SX0infqNRyPRNJK+bnQd1yOP4++tjD/lAPE+5tiD/waI3fArt43ZE/qp7pYMS
101
101
  end
102
102
 
103
103
  def generate_cert(key)
104
+ puts "\n\nPlease provide the following details to generate your saml key and certificate:"
104
105
  STDOUT.puts "Country Name (2 letter code) [AU]:"
105
106
  country = STDIN.gets.strip
106
107
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saml_camel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - 'Danai Adkisson '