saml_camel 0.1.9 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d301a7a75f983e4a996abb0c7929c03918e0b9a0
|
4
|
+
data.tar.gz: 80c7b4c2083c751a1f384f854af60d5e6e243e1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
29
|
-
|
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
|
data/lib/saml_camel/version.rb
CHANGED
@@ -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
|
|