saml_camel 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/saml_camel/service_provider.rb +5 -3
- data/lib/saml_camel/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dce9ff2ac050eb2f88b674775755aff3e640006345d22bb3437ee03c9a16c6ea
|
4
|
+
data.tar.gz: f9f154c2c133bdbeb62516fe920c884123bc0e7daab4ad4e15a5571948ec620d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b2312e381ff245be8962a0fb5c6bf82474f080fc2420b89ce16d36ad1db3501f2bab43fde7067ffde332465c0e1f6c46081e81478c2c8e7f5a84b0c8218a9c2
|
7
|
+
data.tar.gz: e34258dc50d054442550720248c88a4c1cc1915c53706e343b8ee02ee80bd51c997247ef1f9e3952b1f85825f26a6fc3c3ac7043f36b2285de83731c725a464c
|
@@ -41,12 +41,14 @@ module SamlCamel
|
|
41
41
|
# however when I pulled the ruby-saml gem and searched the repo it looks like there is no clock drift by default
|
42
42
|
def self.set_clock_drift
|
43
43
|
clock_drift = SP_SETTINGS.dig('settings','clock_drift')
|
44
|
-
# clock drift must either be an integer of falsey
|
45
|
-
|
44
|
+
# clock drift must either be an integer of falsey, classes have come through
|
45
|
+
# differently (fixnum, bignum, integer), using a regex instead to see if that
|
46
|
+
# addresses some issues https://stackoverflow.com/questions/16774064/regular-expression-for-whole-numbers-and-integers
|
47
|
+
unless clock_drift.match(/(?<![-.])\b[0-9]+\b(?!\.[0-9])/) || !clock_drift
|
46
48
|
SamlCamel::Logging.clock_drift(clock_drift)
|
47
49
|
raise "Clock Drift Incorrectly Configured."
|
48
50
|
end
|
49
|
-
clock_drift
|
51
|
+
clock_drift.to_i
|
50
52
|
end
|
51
53
|
|
52
54
|
|
data/lib/saml_camel/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saml_camel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 'Danai Adkisson '
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -139,8 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
|
-
|
143
|
-
rubygems_version: 2.7.7
|
142
|
+
rubygems_version: 3.0.3
|
144
143
|
signing_key:
|
145
144
|
specification_version: 4
|
146
145
|
summary: SAML tool wrapping onelogin/rubysaml
|