rack-cas 0.7.1 → 0.7.2
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 +4 -4
- data/lib/rack-cas/cas_request.rb +6 -4
- data/lib/rack-cas/version.rb +1 -1
- 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: d28bf51ea9858829fed4fa15ec3ea9a4416105a8
|
4
|
+
data.tar.gz: 465a8c6c9e110a9afff1952dc27050926f9cd601
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b5a980cb392efee5104485a6b3b7ba3e0553540b3dcf3ca4aeb6fc57e568992967c1d3822a203053a128454e51c1de0a20e5a6295e8c041e25ec4c9dcc358a1
|
7
|
+
data.tar.gz: af3e2e3a5307707667bf33ede93333b6b798380b19422126dd41cb859db2bf6c0583cbf2ddb98dd04ef0573f8df805183be97bfe4d1eca286da0e74c4b10f4dd
|
data/lib/rack-cas/cas_request.rb
CHANGED
@@ -26,9 +26,11 @@ class CASRequest
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def ticket_validation?
|
29
|
-
# The CAS protocol specifies
|
30
|
-
#
|
31
|
-
|
29
|
+
# The CAS protocol specifies that services must support tickets of
|
30
|
+
# *up to* 32 characters in length (including ST-), and recommendes
|
31
|
+
# that services accept tickets up to 256 characters long.
|
32
|
+
# http://www.jasig.org/cas/protocol
|
33
|
+
!!(@request.get? && ticket_param && ticket_param.to_s =~ /\AST\-[^\s]{1,253}\Z/)
|
32
34
|
end
|
33
35
|
|
34
36
|
def path_matches?(strings_or_regexps)
|
@@ -52,4 +54,4 @@ class CASRequest
|
|
52
54
|
node = xml.root.children.find { |c| c.name =~ /SessionIndex/i }
|
53
55
|
node.text unless node.nil?
|
54
56
|
end
|
55
|
-
end
|
57
|
+
end
|
data/lib/rack-cas/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-cas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Crownoble
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|