cassette 1.0.2 → 1.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/README.md +125 -106
- data/lib/cassette/authentication/authorities.rb +5 -5
- data/lib/cassette/authentication/cache.rb +5 -6
- data/lib/cassette/authentication/filter.rb +9 -9
- data/lib/cassette/authentication/user.rb +4 -4
- data/lib/cassette/authentication.rb +9 -9
- data/lib/cassette/cache.rb +2 -4
- data/lib/cassette/client/cache.rb +12 -12
- data/lib/cassette/client.rb +11 -16
- data/lib/cassette/errors/not_a_customer.rb +1 -2
- data/lib/cassette/errors/not_an_employee.rb +1 -2
- data/lib/cassette/errors.rb +8 -8
- data/lib/cassette/rubycas/helper.rb +21 -25
- data/lib/cassette/rubycas/not_single_sign_out_constraint.rb +1 -2
- data/lib/cassette/rubycas/single_sign_out_constraint.rb +6 -7
- data/lib/cassette/rubycas.rb +3 -4
- data/lib/cassette/version.rb +6 -10
- data/lib/cassette.rb +21 -21
- data/spec/cas_spec.rb +21 -21
- data/spec/cassette/authentication/authorities_spec.rb +82 -0
- data/spec/{cas → cassette}/authentication/cache_spec.rb +0 -0
- data/spec/{cas → cassette}/authentication/filter_spec.rb +52 -53
- data/spec/cassette/authentication/user_spec.rb +70 -0
- data/spec/cassette/authentication_spec.rb +84 -0
- data/spec/{cas → cassette}/cache_spec.rb +7 -8
- data/spec/{cas → cassette}/client/cache_spec.rb +0 -0
- data/spec/{cas → cassette}/errors_spec.rb +6 -6
- data/spec/config.yml +4 -4
- data/spec/integration/cas/client_spec.rb +32 -31
- data/spec/spec_helper.rb +7 -7
- metadata +57 -57
- data/spec/cas/authentication/authorities_spec.rb +0 -82
- data/spec/cas/authentication/user_spec.rb +0 -70
- data/spec/cas/authentication_spec.rb +0 -84
@@ -0,0 +1,70 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Cassette::Authentication::User do
|
4
|
+
let(:base_authority) do
|
5
|
+
Cassette.config.base_authority
|
6
|
+
end
|
7
|
+
|
8
|
+
describe '#initialize' do
|
9
|
+
context 'without a config' do
|
10
|
+
it 'forwards authorities parsing' do
|
11
|
+
expect(Cassette::Authentication::Authorities).to receive(:new).with('[CUSTOMERAPI, SAPI]', nil)
|
12
|
+
Cassette::Authentication::User.new(login: 'john.doe', name: 'John Doe', authorities: '[CUSTOMERAPI, SAPI]')
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
context 'with a config' do
|
17
|
+
it 'forwards authorities parsing passing along the base authority' do
|
18
|
+
config = object_double(Cassette.config)
|
19
|
+
|
20
|
+
expect(config).to receive(:base_authority).and_return('TESTAPI')
|
21
|
+
expect(Cassette::Authentication::Authorities).to receive(:new).with('[CUSTOMERAPI, SAPI]', 'TESTAPI')
|
22
|
+
|
23
|
+
Cassette::Authentication::User.new(login: 'john.doe', name: 'John Doe', authorities: '[CUSTOMERAPI, SAPI]', config: config)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
describe '#has_role?' do
|
29
|
+
let (:user) do
|
30
|
+
Cassette::Authentication::User.new(login: 'john.doe', name: 'John Doe',
|
31
|
+
authorities: "[#{base_authority}, SAPI, #{base_authority}_CREATE-USER]")
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'adds the application prefix to roles' do
|
35
|
+
expect(user.has_role?('CREATE-USER')).to eql(true)
|
36
|
+
end
|
37
|
+
|
38
|
+
it 'ignores role case' do
|
39
|
+
expect(user.has_role?('create-user')).to eql(true)
|
40
|
+
end
|
41
|
+
|
42
|
+
it 'replaces underscores with dashes' do
|
43
|
+
expect(user.has_role?('create_user')).to eql(true)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
context 'user types' do
|
48
|
+
context '#employee?' do
|
49
|
+
it 'returns true when user is an employee' do
|
50
|
+
expect(Cassette::Authentication::User.new(type: 'employee')).to be_employee
|
51
|
+
expect(Cassette::Authentication::User.new(type: 'Employee')).to be_employee
|
52
|
+
expect(Cassette::Authentication::User.new(type: :employee)).to be_employee
|
53
|
+
expect(Cassette::Authentication::User.new(type: 'customer')).not_to be_employee
|
54
|
+
expect(Cassette::Authentication::User.new(type: nil)).not_to be_employee
|
55
|
+
expect(Cassette::Authentication::User.new(type: '')).not_to be_employee
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
context '#customer?' do
|
60
|
+
it 'returns true when the user is a customer' do
|
61
|
+
expect(Cassette::Authentication::User.new(type: 'customer')).to be_customer
|
62
|
+
expect(Cassette::Authentication::User.new(type: 'Customer')).to be_customer
|
63
|
+
expect(Cassette::Authentication::User.new(type: :customer)).to be_customer
|
64
|
+
expect(Cassette::Authentication::User.new(type: 'employee')).not_to be_customer
|
65
|
+
expect(Cassette::Authentication::User.new(type: nil)).not_to be_customer
|
66
|
+
expect(Cassette::Authentication::User.new(type: '')).not_to be_customer
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Cassette::Authentication do
|
6
|
+
let(:cache) { instance_double(Cassette::Authentication::Cache) }
|
7
|
+
let(:http) { class_double(Cassette) }
|
8
|
+
|
9
|
+
subject do
|
10
|
+
Cassette::Authentication.new(cache: cache, http_client: http)
|
11
|
+
end
|
12
|
+
|
13
|
+
describe '#ticket_user' do
|
14
|
+
context 'when cached' do
|
15
|
+
it 'returns the cached value when cached' do
|
16
|
+
cached = double('cached')
|
17
|
+
|
18
|
+
expect(cache).to receive(:fetch_authentication) do |ticket, &block|
|
19
|
+
expect(ticket).to eql('ticket')
|
20
|
+
expect(block).to be_present
|
21
|
+
cached
|
22
|
+
end
|
23
|
+
|
24
|
+
expect(subject.ticket_user('ticket')).to eql(cached)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
context 'when not cached' do
|
29
|
+
before do
|
30
|
+
expect(cache).to receive(:fetch_authentication) do |_ticket, &block|
|
31
|
+
block.call
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
it 'raises a Forbidden exception on any exceptions' do
|
36
|
+
allow(http).to receive(:post).with(anything, anything).and_raise(Cassette::Errors::BadRequest)
|
37
|
+
expect { subject.ticket_user('ticket') }.to raise_error(Cassette::Errors::Forbidden)
|
38
|
+
end
|
39
|
+
|
40
|
+
context 'with a failed CAS response' do
|
41
|
+
before do
|
42
|
+
allow(http).to receive(:post).with(anything, anything)
|
43
|
+
.and_return(OpenStruct.new(body: fixture('cas/fail.xml')))
|
44
|
+
end
|
45
|
+
|
46
|
+
it 'returns nil' do
|
47
|
+
expect(subject.ticket_user('ticket')).to be_nil
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
context 'with a successful CAS response' do
|
52
|
+
before do
|
53
|
+
allow(http).to receive(:post).with(anything, anything)
|
54
|
+
.and_return(OpenStruct.new(body: fixture('cas/success.xml')))
|
55
|
+
end
|
56
|
+
|
57
|
+
it 'returns an User' do
|
58
|
+
expect(subject.ticket_user('ticket')).to be_instance_of(Cassette::Authentication::User)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe '#validate_ticket' do
|
65
|
+
it 'raises a authorization required error when no ticket is provided' do
|
66
|
+
expect { subject.validate_ticket(nil) }.to raise_error(Cassette::Errors::AuthorizationRequired)
|
67
|
+
end
|
68
|
+
|
69
|
+
it 'raises a authorization required error when ticket is blank' do
|
70
|
+
expect { subject.validate_ticket('') }.to raise_error(Cassette::Errors::AuthorizationRequired)
|
71
|
+
end
|
72
|
+
|
73
|
+
it 'raises a forbidden error when the associated user is not found' do
|
74
|
+
expect(subject).to receive(:ticket_user).with('ticket', Cassette.config.service).and_return(nil)
|
75
|
+
expect { subject.validate_ticket('ticket') }.to raise_error(Cassette::Errors::Forbidden)
|
76
|
+
end
|
77
|
+
|
78
|
+
it 'returns the associated user' do
|
79
|
+
user = double('User')
|
80
|
+
expect(subject).to receive(:ticket_user).with('ticket', Cassette.config.service).and_return(user)
|
81
|
+
expect(subject.validate_ticket('ticket')).to eql(user)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -9,32 +9,31 @@ describe Cassette::Cache do
|
|
9
9
|
c.new
|
10
10
|
end
|
11
11
|
|
12
|
-
describe
|
12
|
+
describe 'backend' do
|
13
13
|
before { subject.backend = nil }
|
14
14
|
after { subject.backend = nil }
|
15
15
|
|
16
|
-
it
|
16
|
+
it 'sets the backend' do
|
17
17
|
backend = double('Backend')
|
18
18
|
subject.backend = backend
|
19
19
|
expect(subject.backend).to eql(backend)
|
20
20
|
end
|
21
21
|
|
22
|
-
it
|
23
|
-
rails = double(
|
22
|
+
it 'defaults to rails backend' do
|
23
|
+
rails = double('Rails')
|
24
24
|
allow(rails).to receive(:cache).and_return(rails)
|
25
|
-
stub_const(
|
25
|
+
stub_const('Rails', rails)
|
26
26
|
|
27
27
|
expect(subject.backend).to eql(rails)
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
-
it
|
31
|
+
it 'invalidates the cache after the configured number of uses' do
|
32
32
|
generator = double('Generator')
|
33
33
|
expect(generator).to receive(:generate).twice
|
34
34
|
|
35
35
|
6.times do
|
36
|
-
subject.fetch(
|
36
|
+
subject.fetch('Generator', max_uses: 5) { generator.generate }
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
40
|
-
|
File without changes
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
|
-
require
|
3
|
+
require 'spec_helper'
|
4
4
|
|
5
5
|
describe Cassette::Errors do
|
6
6
|
describe Cassette::Errors::Base do
|
7
|
-
describe
|
8
|
-
it
|
7
|
+
describe '#code' do
|
8
|
+
it 'returns the HTTP status code accordlingly' do
|
9
9
|
expect(Cassette::Errors::Forbidden.new.code).to eql(403)
|
10
10
|
expect(Cassette::Errors::NotFound.new.code).to eql(404)
|
11
11
|
expect(Cassette::Errors::InternalServerError.new.code).to eql(500)
|
@@ -13,15 +13,15 @@ describe Cassette::Errors do
|
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
|
-
describe
|
17
|
-
it
|
16
|
+
describe '.raise_by_code' do
|
17
|
+
it 'raises the correct exception for the status code' do
|
18
18
|
expect { Cassette::Errors.raise_by_code(404) }.to raise_error(Cassette::Errors::NotFound)
|
19
19
|
expect { Cassette::Errors.raise_by_code(403) }.to raise_error(Cassette::Errors::Forbidden)
|
20
20
|
expect { Cassette::Errors.raise_by_code(412) }.to raise_error(Cassette::Errors::PreconditionFailed)
|
21
21
|
expect { Cassette::Errors.raise_by_code(500) }.to raise_error(Cassette::Errors::InternalServerError)
|
22
22
|
end
|
23
23
|
|
24
|
-
it
|
24
|
+
it 'raises internal server error for unmapped errors' do
|
25
25
|
expect { Cassette::Errors.raise_by_code(406) }.to raise_error(Cassette::Errors::InternalServerError)
|
26
26
|
expect { Cassette::Errors.raise_by_code(200) }.to raise_error(Cassette::Errors::InternalServerError)
|
27
27
|
end
|
data/spec/config.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
username: "
|
2
|
-
password: "
|
3
|
-
service: "test-api.
|
4
|
-
base: "https://
|
1
|
+
username: "user"
|
2
|
+
password: "secret"
|
3
|
+
service: "test-api.example.org"
|
4
|
+
base: "https://some-cas.example.org"
|
5
5
|
base_authority: "CASTEST"
|
@@ -1,50 +1,51 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
-
require
|
3
|
+
require 'spec_helper'
|
4
4
|
|
5
|
-
RSpec.describe
|
6
|
-
shared_examples_for
|
7
|
-
let(:config) {
|
5
|
+
RSpec.describe 'Cassette::Client, Cassette::Authentication integration' do
|
6
|
+
shared_examples_for 'a Cassette client and validator' do
|
7
|
+
let(:config) { fail 'implement config!' }
|
8
8
|
let(:client) { Cassette::Client.new(config: config) }
|
9
9
|
let(:authentication) { Cassette::Authentication.new(config: config) }
|
10
10
|
|
11
|
-
it
|
11
|
+
it 'generates an ST' do
|
12
12
|
expect(client.st_for(config.service)).not_to be_blank
|
13
13
|
end
|
14
14
|
|
15
|
-
it
|
15
|
+
it 'validates an ST, extracting the user' do
|
16
16
|
st = client.st_for(config.service)
|
17
|
+
user = authentication.ticket_user(st, config.service)
|
17
18
|
|
18
|
-
expect(user
|
19
|
+
expect(user).not_to be_blank
|
19
20
|
expect(user.login).to eql(config.username)
|
20
21
|
end
|
21
22
|
end
|
22
23
|
|
23
|
-
context
|
24
|
-
it_behaves_like "a Cassette client and validator" do
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
end
|
24
|
+
context 'with a configuration' do
|
25
|
+
# it_behaves_like "a Cassette client and validator" do
|
26
|
+
# let(:config) do
|
27
|
+
# OpenStruct.new(
|
28
|
+
# username: "test.user",
|
29
|
+
# password: "anothersecret",
|
30
|
+
# base: "https://anothercas.example.org",
|
31
|
+
# service: "qualquercoisa"
|
32
|
+
# base_authority: "SYSTEM"
|
33
|
+
# )
|
34
|
+
# end
|
35
|
+
# end
|
35
36
|
end
|
36
37
|
|
37
|
-
context
|
38
|
-
it_behaves_like "a Cassette client and validator" do
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
end
|
38
|
+
context 'with a another configuration' do
|
39
|
+
# it_behaves_like "a Cassette client and validator" do
|
40
|
+
# let(:config) do
|
41
|
+
# OpenStruct.new(
|
42
|
+
# username: "test.user",
|
43
|
+
# password: "anothersecret",
|
44
|
+
# base: "https://anothercas.example.org",
|
45
|
+
# service: "qualquercoisa"
|
46
|
+
# base_authority: "SYSTEM"
|
47
|
+
# )
|
48
|
+
# end
|
49
|
+
# end
|
49
50
|
end
|
50
51
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'simplecov'
|
2
2
|
require 'simplecov-rcov'
|
3
3
|
require 'simplecov-gem-adapter'
|
4
|
-
require
|
4
|
+
require 'yaml'
|
5
5
|
|
6
6
|
module Fixtures
|
7
7
|
def fixture(name)
|
@@ -16,12 +16,12 @@ end
|
|
16
16
|
|
17
17
|
SimpleCov.start 'gem' do
|
18
18
|
formatter SimpleCov::Formatter::RcovFormatter
|
19
|
-
add_filter
|
20
|
-
add_filter
|
19
|
+
add_filter 'spec/'
|
20
|
+
add_filter 'vendor/'
|
21
21
|
end
|
22
22
|
|
23
|
-
require
|
24
|
-
require
|
25
|
-
require
|
23
|
+
require 'cassette'
|
24
|
+
require 'cassette/rubycas'
|
25
|
+
require 'ostruct'
|
26
26
|
|
27
|
-
Cassette.config = OpenStruct.new(YAML.load_file(
|
27
|
+
Cassette.config = OpenStruct.new(YAML.load_file('spec/config.yml'))
|
metadata
CHANGED
@@ -1,181 +1,181 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cassette
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo Hermida Ruiz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.9'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.9'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: libxml-ruby
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: activesupport
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 3.1.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 3.1.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
68
|
+
version: '3.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: pry
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rubycas-client
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: simplecov
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: rubocop
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name: simplecov-
|
140
|
+
name: simplecov-rcov
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- -
|
143
|
+
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: simplecov-gem-adapter
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- -
|
157
|
+
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: '0'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- -
|
164
|
+
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: rspec_junit_formatter
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- -
|
171
|
+
- - ">="
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: '0'
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- -
|
178
|
+
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
181
|
description: Client for generating and validating CAS TGT/STs
|
@@ -203,21 +203,21 @@ files:
|
|
203
203
|
- lib/cassette/rubycas/not_single_sign_out_constraint.rb
|
204
204
|
- lib/cassette/rubycas/single_sign_out_constraint.rb
|
205
205
|
- lib/cassette/version.rb
|
206
|
-
- spec/cas/authentication/authorities_spec.rb
|
207
|
-
- spec/cas/authentication/cache_spec.rb
|
208
|
-
- spec/cas/authentication/filter_spec.rb
|
209
|
-
- spec/cas/authentication/user_spec.rb
|
210
|
-
- spec/cas/authentication_spec.rb
|
211
|
-
- spec/cas/cache_spec.rb
|
212
|
-
- spec/cas/client/cache_spec.rb
|
213
|
-
- spec/cas/errors_spec.rb
|
214
206
|
- spec/cas_spec.rb
|
207
|
+
- spec/cassette/authentication/authorities_spec.rb
|
208
|
+
- spec/cassette/authentication/cache_spec.rb
|
209
|
+
- spec/cassette/authentication/filter_spec.rb
|
210
|
+
- spec/cassette/authentication/user_spec.rb
|
211
|
+
- spec/cassette/authentication_spec.rb
|
212
|
+
- spec/cassette/cache_spec.rb
|
213
|
+
- spec/cassette/client/cache_spec.rb
|
214
|
+
- spec/cassette/errors_spec.rb
|
215
215
|
- spec/config.yml
|
216
216
|
- spec/fixtures/cas/fail.xml
|
217
217
|
- spec/fixtures/cas/success.xml
|
218
218
|
- spec/integration/cas/client_spec.rb
|
219
219
|
- spec/spec_helper.rb
|
220
|
-
homepage: http://github.com/locaweb/
|
220
|
+
homepage: http://github.com/locaweb/cassette
|
221
221
|
licenses: []
|
222
222
|
metadata: {}
|
223
223
|
post_install_message:
|
@@ -226,30 +226,30 @@ require_paths:
|
|
226
226
|
- lib
|
227
227
|
required_ruby_version: !ruby/object:Gem::Requirement
|
228
228
|
requirements:
|
229
|
-
- -
|
229
|
+
- - ">="
|
230
230
|
- !ruby/object:Gem::Version
|
231
231
|
version: '0'
|
232
232
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
|
-
- -
|
234
|
+
- - ">="
|
235
235
|
- !ruby/object:Gem::Version
|
236
236
|
version: '0'
|
237
237
|
requirements: []
|
238
238
|
rubyforge_project:
|
239
|
-
rubygems_version: 2.
|
239
|
+
rubygems_version: 2.2.2
|
240
240
|
signing_key:
|
241
241
|
specification_version: 4
|
242
242
|
summary: Generates, validates and caches TGTs and STs
|
243
243
|
test_files:
|
244
|
-
- spec/cas/authentication/authorities_spec.rb
|
245
|
-
- spec/cas/authentication/cache_spec.rb
|
246
|
-
- spec/cas/authentication/filter_spec.rb
|
247
|
-
- spec/cas/authentication/user_spec.rb
|
248
|
-
- spec/cas/authentication_spec.rb
|
249
|
-
- spec/cas/cache_spec.rb
|
250
|
-
- spec/cas/client/cache_spec.rb
|
251
|
-
- spec/cas/errors_spec.rb
|
252
244
|
- spec/cas_spec.rb
|
245
|
+
- spec/cassette/authentication/authorities_spec.rb
|
246
|
+
- spec/cassette/authentication/cache_spec.rb
|
247
|
+
- spec/cassette/authentication/filter_spec.rb
|
248
|
+
- spec/cassette/authentication/user_spec.rb
|
249
|
+
- spec/cassette/authentication_spec.rb
|
250
|
+
- spec/cassette/cache_spec.rb
|
251
|
+
- spec/cassette/client/cache_spec.rb
|
252
|
+
- spec/cassette/errors_spec.rb
|
253
253
|
- spec/config.yml
|
254
254
|
- spec/fixtures/cas/fail.xml
|
255
255
|
- spec/fixtures/cas/success.xml
|