rack-cas 0.7.1 → 0.7.2

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: b512d0ffca0a80b935d7f6aaf73c5b7ddc9fea4e
4
- data.tar.gz: 0f0e27f8c8a5a30b1dcace4ebfb7da94312fe293
3
+ metadata.gz: d28bf51ea9858829fed4fa15ec3ea9a4416105a8
4
+ data.tar.gz: 465a8c6c9e110a9afff1952dc27050926f9cd601
5
5
  SHA512:
6
- metadata.gz: 181b529b5eb80f72e4b47b7b501fbb56424dd344170e4fab0ea60d7850f9936f05309eaa141af10cc5ae466b5de27340a8d1bea6cd5742a7127b5290a451089c
7
- data.tar.gz: 65c877333d00ee77ebd0356a90198d63f10582667a710fdc8e10402c1fa618283d863aee554769fa2426b445c10ff4c8a6d1abf7aaff241ceb97e93f5bc80844
6
+ metadata.gz: 6b5a980cb392efee5104485a6b3b7ba3e0553540b3dcf3ca4aeb6fc57e568992967c1d3822a203053a128454e51c1de0a20e5a6295e8c041e25ec4c9dcc358a1
7
+ data.tar.gz: af3e2e3a5307707667bf33ede93333b6b798380b19422126dd41cb859db2bf6c0583cbf2ddb98dd04ef0573f8df805183be97bfe4d1eca286da0e74c4b10f4dd
@@ -26,9 +26,11 @@ class CASRequest
26
26
  end
27
27
 
28
28
  def ticket_validation?
29
- # The CAS protocol specifies 32 characters as the minimum length of a
30
- # service ticket (including ST-) http://www.jasig.org/cas/protocol
31
- !!(@request.get? && ticket_param && ticket_param.to_s =~ /\AST\-[^\s]{29}/)
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
@@ -1,3 +1,3 @@
1
1
  module RackCAS
2
- VERSION = '0.7.1'
2
+ VERSION = '0.7.2'
3
3
  end
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.1
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-17 00:00:00.000000000 Z
11
+ date: 2013-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack