maestrano-ruby-test 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +34 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +45 -0
- data/LICENSE +21 -0
- data/README.md +794 -0
- data/Rakefile +40 -0
- data/bin/maestrano-console +9 -0
- data/lib/maestrano.rb +271 -0
- data/lib/maestrano/account/bill.rb +14 -0
- data/lib/maestrano/account/recurring_bill.rb +14 -0
- data/lib/maestrano/api/error/authentication_error.rb +8 -0
- data/lib/maestrano/api/error/base_error.rb +24 -0
- data/lib/maestrano/api/error/connection_error.rb +8 -0
- data/lib/maestrano/api/error/invalid_request_error.rb +14 -0
- data/lib/maestrano/api/list_object.rb +37 -0
- data/lib/maestrano/api/object.rb +187 -0
- data/lib/maestrano/api/operation/base.rb +215 -0
- data/lib/maestrano/api/operation/create.rb +18 -0
- data/lib/maestrano/api/operation/delete.rb +13 -0
- data/lib/maestrano/api/operation/list.rb +18 -0
- data/lib/maestrano/api/operation/update.rb +59 -0
- data/lib/maestrano/api/resource.rb +47 -0
- data/lib/maestrano/api/util.rb +122 -0
- data/lib/maestrano/open_struct.rb +11 -0
- data/lib/maestrano/saml/attribute_value.rb +15 -0
- data/lib/maestrano/saml/metadata.rb +64 -0
- data/lib/maestrano/saml/request.rb +93 -0
- data/lib/maestrano/saml/response.rb +201 -0
- data/lib/maestrano/saml/schemas/saml20assertion_schema.xsd +283 -0
- data/lib/maestrano/saml/schemas/saml20protocol_schema.xsd +302 -0
- data/lib/maestrano/saml/schemas/xenc_schema.xsd +146 -0
- data/lib/maestrano/saml/schemas/xmldsig_schema.xsd +318 -0
- data/lib/maestrano/saml/settings.rb +37 -0
- data/lib/maestrano/saml/validation_error.rb +7 -0
- data/lib/maestrano/sso.rb +86 -0
- data/lib/maestrano/sso/base_group.rb +31 -0
- data/lib/maestrano/sso/base_membership.rb +25 -0
- data/lib/maestrano/sso/base_user.rb +75 -0
- data/lib/maestrano/sso/group.rb +24 -0
- data/lib/maestrano/sso/session.rb +107 -0
- data/lib/maestrano/sso/user.rb +34 -0
- data/lib/maestrano/version.rb +3 -0
- data/lib/maestrano/xml_security/signed_document.rb +170 -0
- data/maestrano.gemspec +32 -0
- data/maestrano.png +0 -0
- data/test/helpers/api_helpers.rb +115 -0
- data/test/helpers/saml_helpers.rb +62 -0
- data/test/maestrano/account/bill_test.rb +48 -0
- data/test/maestrano/account/recurring_bill_test.rb +49 -0
- data/test/maestrano/api/list_object_test.rb +20 -0
- data/test/maestrano/api/object_test.rb +28 -0
- data/test/maestrano/api/resource_test.rb +343 -0
- data/test/maestrano/api/util_test.rb +31 -0
- data/test/maestrano/maestrano_test.rb +260 -0
- data/test/maestrano/open_struct_test.rb +10 -0
- data/test/maestrano/saml/request_test.rb +168 -0
- data/test/maestrano/saml/response_test.rb +290 -0
- data/test/maestrano/saml/settings_test.rb +51 -0
- data/test/maestrano/sso/base_group_test.rb +54 -0
- data/test/maestrano/sso/base_membership_test.rb +45 -0
- data/test/maestrano/sso/base_user_test.rb +114 -0
- data/test/maestrano/sso/group_test.rb +47 -0
- data/test/maestrano/sso/session_test.rb +161 -0
- data/test/maestrano/sso/user_test.rb +65 -0
- data/test/maestrano/sso_test.rb +105 -0
- data/test/maestrano/xml_security/signed_document.rb +163 -0
- data/test/support/saml/certificates/certificate1 +12 -0
- data/test/support/saml/certificates/r1_certificate2_base64 +1 -0
- data/test/support/saml/responses/adfs_response_sha1.xml +46 -0
- data/test/support/saml/responses/adfs_response_sha256.xml +46 -0
- data/test/support/saml/responses/adfs_response_sha384.xml +46 -0
- data/test/support/saml/responses/adfs_response_sha512.xml +46 -0
- data/test/support/saml/responses/no_signature_ns.xml +48 -0
- data/test/support/saml/responses/open_saml_response.xml +56 -0
- data/test/support/saml/responses/r1_response6.xml.base64 +1 -0
- data/test/support/saml/responses/response1.xml.base64 +1 -0
- data/test/support/saml/responses/response2.xml.base64 +79 -0
- data/test/support/saml/responses/response3.xml.base64 +66 -0
- data/test/support/saml/responses/response4.xml.base64 +93 -0
- data/test/support/saml/responses/response5.xml.base64 +102 -0
- data/test/support/saml/responses/response_with_ampersands.xml +139 -0
- data/test/support/saml/responses/response_with_ampersands.xml.base64 +93 -0
- data/test/support/saml/responses/response_with_multiple_attribute_values.xml +57 -0
- data/test/support/saml/responses/simple_saml_php.xml +71 -0
- data/test/support/saml/responses/starfield_response.xml.base64 +1 -0
- data/test/support/saml/responses/wrapped_response_2.xml.base64 +150 -0
- data/test/test_helper.rb +47 -0
- metadata +315 -0
@@ -0,0 +1,71 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<samlp:Response xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" ID="pfxc32aed67-820f-4296-0c20-205a10dd5787" Version="2.0" IssueInstant="2011-06-17T14:54:14Z" Destination="https://example.hello.com/access/saml" InResponseTo="_57bcbf70-7b1f-012e-c821-782bcb13bb38">
|
3
|
+
<saml:Issuer>https://federate.example.net/saml/saml2/idp/metadata.php</saml:Issuer>
|
4
|
+
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
|
5
|
+
<ds:SignedInfo>
|
6
|
+
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
|
7
|
+
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
|
8
|
+
<ds:Reference URI="#pfxc32aed67-820f-4296-0c20-205a10dd5787">
|
9
|
+
<ds:Transforms>
|
10
|
+
<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
|
11
|
+
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
|
12
|
+
</ds:Transforms>
|
13
|
+
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
|
14
|
+
<ds:DigestValue>dVJ592k5xPjCHBCMiJ8eZkPUiT8=</ds:DigestValue>
|
15
|
+
</ds:Reference>
|
16
|
+
</ds:SignedInfo>
|
17
|
+
<ds:SignatureValue>LHNK1FJfcOIUuWVKJmGABQ+W98+pQ==</ds:SignatureValue>
|
18
|
+
<ds:KeyInfo>
|
19
|
+
<ds:X509Data>
|
20
|
+
<ds:X509Certificate>MIIQmS6WmmIht3k=</ds:X509Certificate>
|
21
|
+
</ds:X509Data>
|
22
|
+
</ds:KeyInfo>
|
23
|
+
</ds:Signature>
|
24
|
+
<samlp:Status>
|
25
|
+
<samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/>
|
26
|
+
</samlp:Status>
|
27
|
+
<saml:Assertion xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" ID="pfx7841991c-c73f-4035-e2ee-c170c0e1d3e4" Version="2.0" IssueInstant="2011-06-17T14:54:14Z">
|
28
|
+
<saml:Issuer>https://federate.example.net/saml/saml2/idp/metadata.php</saml:Issuer>
|
29
|
+
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
|
30
|
+
<ds:SignedInfo>
|
31
|
+
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
|
32
|
+
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
|
33
|
+
<ds:Reference URI="#pfx7841991c-c73f-4035-e2ee-c170c0e1d3e4">
|
34
|
+
<ds:Transforms>
|
35
|
+
<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
|
36
|
+
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
|
37
|
+
</ds:Transforms>
|
38
|
+
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
|
39
|
+
<ds:DigestValue>mi0IAultZkpsZa1XxGx9X4iAPQg=</ds:DigestValue>
|
40
|
+
</ds:Reference>
|
41
|
+
</ds:SignedInfo>
|
42
|
+
<ds:SignatureValue>LqkW39SOYbttYxlGhIBw==</ds:SignatureValue>
|
43
|
+
<ds:KeyInfo>
|
44
|
+
<ds:X509Data>
|
45
|
+
<ds:X509Certificate>MIIGmmIht3k=</ds:X509Certificate>
|
46
|
+
</ds:X509Data>
|
47
|
+
</ds:KeyInfo>
|
48
|
+
</ds:Signature>
|
49
|
+
<saml:Subject>
|
50
|
+
<saml:NameID SPNameQualifier="hello.com" Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress">someone@example.com</saml:NameID>
|
51
|
+
<saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
|
52
|
+
<saml:SubjectConfirmationData NotOnOrAfter="2011-06-17T14:59:14Z" Recipient="https://example.hello.com/access/saml" InResponseTo="_57bcbf70-7b1f-012e-c821-782bcb13bb38"/>
|
53
|
+
</saml:SubjectConfirmation>
|
54
|
+
</saml:Subject>
|
55
|
+
<saml:Conditions NotBefore="2011-06-17T14:53:44Z" NotOnOrAfter="2011-06-17T14:59:14Z">
|
56
|
+
<saml:AudienceRestriction>
|
57
|
+
<saml:Audience>hello.com</saml:Audience>
|
58
|
+
</saml:AudienceRestriction>
|
59
|
+
</saml:Conditions>
|
60
|
+
<saml:AuthnStatement AuthnInstant="2011-06-17T14:54:07Z" SessionNotOnOrAfter="2011-06-17T22:54:14Z" SessionIndex="_51be37965feb5579d803141076936dc2e9d1d98ebf">
|
61
|
+
<saml:AuthnContext>
|
62
|
+
<saml:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:Password</saml:AuthnContextClassRef>
|
63
|
+
</saml:AuthnContext>
|
64
|
+
</saml:AuthnStatement>
|
65
|
+
<saml:AttributeStatement>
|
66
|
+
<saml:Attribute Name="mail" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
|
67
|
+
<saml:AttributeValue xsi:type="xs:string">someone@example.com</saml:AttributeValue>
|
68
|
+
</saml:Attribute>
|
69
|
+
</saml:AttributeStatement>
|
70
|
+
</saml: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WQ6RW1haWxBZGRy
|
149
|
+
ZXNzPg0KICAgIDwvbWQ6Q29udGFjdFBlcnNvbj4NCiAgPC9tZDpFbnRpdHlEZXNj
|
150
|
+
cmlwdG9yPg0KPC9zYW1scDpSZXNwb25zZT4=
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
require 'maestrano'
|
2
|
+
require 'test/unit'
|
3
|
+
require 'shoulda'
|
4
|
+
require 'mocha/setup'
|
5
|
+
require 'timecop'
|
6
|
+
|
7
|
+
# Require all helpers
|
8
|
+
Dir[File.expand_path(File.join(File.dirname(__FILE__),"helpers/**/*.rb"))].each {|f| require f}
|
9
|
+
|
10
|
+
# Monkeypath request methods
|
11
|
+
module Maestrano
|
12
|
+
module API
|
13
|
+
module Operation
|
14
|
+
module Base
|
15
|
+
@mock_rest_client = nil
|
16
|
+
|
17
|
+
def self.mock_rest_client=(mock_client)
|
18
|
+
@mock_rest_client = mock_client
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.execute_request(opts)
|
22
|
+
get_params = (opts[:headers] || {})[:params]
|
23
|
+
post_params = opts[:payload]
|
24
|
+
case opts[:method]
|
25
|
+
when :get then @mock_rest_client.get opts[:url], get_params, post_params
|
26
|
+
when :put then @mock_rest_client.put opts[:url], get_params, post_params
|
27
|
+
when :post then @mock_rest_client.post opts[:url], get_params, post_params
|
28
|
+
when :delete then @mock_rest_client.delete opts[:url], get_params, post_params
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
class Test::Unit::TestCase
|
37
|
+
setup do
|
38
|
+
@api_mock = mock('api_mock')
|
39
|
+
Maestrano::API::Operation::Base.mock_rest_client = @api_mock
|
40
|
+
Maestrano.configure do |config|
|
41
|
+
config.app_id = "app-1"
|
42
|
+
config.api_key = "g15354F34f3x5z"
|
43
|
+
config.environment = 'production'
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
metadata
ADDED
@@ -0,0 +1,315 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: maestrano-ruby-test
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.8.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Arnaud Lachaume
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-07-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rest-client
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.4'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.4'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: mime-types
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.25'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.25'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: json
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.8'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.8'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: test-unit
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: mocha
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.13'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.13'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: shoulda
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '2.11'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '2.11'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: timecop
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "<="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.6.0
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "<="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.6.0
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rake
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '10'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '10'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: uuid
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '2.3'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '2.3'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: nokogiri
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 1.5.0
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 1.5.0
|
153
|
+
description: Maestrano is the next generation marketplace for SME applications. See
|
154
|
+
https://maestrano.com for details.
|
155
|
+
email:
|
156
|
+
- arnaud.lachaume@maestrano.com
|
157
|
+
executables:
|
158
|
+
- maestrano-console
|
159
|
+
extensions: []
|
160
|
+
extra_rdoc_files: []
|
161
|
+
files:
|
162
|
+
- ".gitignore"
|
163
|
+
- Gemfile
|
164
|
+
- Gemfile.lock
|
165
|
+
- LICENSE
|
166
|
+
- README.md
|
167
|
+
- Rakefile
|
168
|
+
- bin/maestrano-console
|
169
|
+
- lib/maestrano.rb
|
170
|
+
- lib/maestrano/account/bill.rb
|
171
|
+
- lib/maestrano/account/recurring_bill.rb
|
172
|
+
- lib/maestrano/api/error/authentication_error.rb
|
173
|
+
- lib/maestrano/api/error/base_error.rb
|
174
|
+
- lib/maestrano/api/error/connection_error.rb
|
175
|
+
- lib/maestrano/api/error/invalid_request_error.rb
|
176
|
+
- lib/maestrano/api/list_object.rb
|
177
|
+
- lib/maestrano/api/object.rb
|
178
|
+
- lib/maestrano/api/operation/base.rb
|
179
|
+
- lib/maestrano/api/operation/create.rb
|
180
|
+
- lib/maestrano/api/operation/delete.rb
|
181
|
+
- lib/maestrano/api/operation/list.rb
|
182
|
+
- lib/maestrano/api/operation/update.rb
|
183
|
+
- lib/maestrano/api/resource.rb
|
184
|
+
- lib/maestrano/api/util.rb
|
185
|
+
- lib/maestrano/open_struct.rb
|
186
|
+
- lib/maestrano/saml/attribute_value.rb
|
187
|
+
- lib/maestrano/saml/metadata.rb
|
188
|
+
- lib/maestrano/saml/request.rb
|
189
|
+
- lib/maestrano/saml/response.rb
|
190
|
+
- lib/maestrano/saml/schemas/saml20assertion_schema.xsd
|
191
|
+
- lib/maestrano/saml/schemas/saml20protocol_schema.xsd
|
192
|
+
- lib/maestrano/saml/schemas/xenc_schema.xsd
|
193
|
+
- lib/maestrano/saml/schemas/xmldsig_schema.xsd
|
194
|
+
- lib/maestrano/saml/settings.rb
|
195
|
+
- lib/maestrano/saml/validation_error.rb
|
196
|
+
- lib/maestrano/sso.rb
|
197
|
+
- lib/maestrano/sso/base_group.rb
|
198
|
+
- lib/maestrano/sso/base_membership.rb
|
199
|
+
- lib/maestrano/sso/base_user.rb
|
200
|
+
- lib/maestrano/sso/group.rb
|
201
|
+
- lib/maestrano/sso/session.rb
|
202
|
+
- lib/maestrano/sso/user.rb
|
203
|
+
- lib/maestrano/version.rb
|
204
|
+
- lib/maestrano/xml_security/signed_document.rb
|
205
|
+
- maestrano.gemspec
|
206
|
+
- maestrano.png
|
207
|
+
- test/helpers/api_helpers.rb
|
208
|
+
- test/helpers/saml_helpers.rb
|
209
|
+
- test/maestrano/account/bill_test.rb
|
210
|
+
- test/maestrano/account/recurring_bill_test.rb
|
211
|
+
- test/maestrano/api/list_object_test.rb
|
212
|
+
- test/maestrano/api/object_test.rb
|
213
|
+
- test/maestrano/api/resource_test.rb
|
214
|
+
- test/maestrano/api/util_test.rb
|
215
|
+
- test/maestrano/maestrano_test.rb
|
216
|
+
- test/maestrano/open_struct_test.rb
|
217
|
+
- test/maestrano/saml/request_test.rb
|
218
|
+
- test/maestrano/saml/response_test.rb
|
219
|
+
- test/maestrano/saml/settings_test.rb
|
220
|
+
- test/maestrano/sso/base_group_test.rb
|
221
|
+
- test/maestrano/sso/base_membership_test.rb
|
222
|
+
- test/maestrano/sso/base_user_test.rb
|
223
|
+
- test/maestrano/sso/group_test.rb
|
224
|
+
- test/maestrano/sso/session_test.rb
|
225
|
+
- test/maestrano/sso/user_test.rb
|
226
|
+
- test/maestrano/sso_test.rb
|
227
|
+
- test/maestrano/xml_security/signed_document.rb
|
228
|
+
- test/support/saml/certificates/certificate1
|
229
|
+
- test/support/saml/certificates/r1_certificate2_base64
|
230
|
+
- test/support/saml/responses/adfs_response_sha1.xml
|
231
|
+
- test/support/saml/responses/adfs_response_sha256.xml
|
232
|
+
- test/support/saml/responses/adfs_response_sha384.xml
|
233
|
+
- test/support/saml/responses/adfs_response_sha512.xml
|
234
|
+
- test/support/saml/responses/no_signature_ns.xml
|
235
|
+
- test/support/saml/responses/open_saml_response.xml
|
236
|
+
- test/support/saml/responses/r1_response6.xml.base64
|
237
|
+
- test/support/saml/responses/response1.xml.base64
|
238
|
+
- test/support/saml/responses/response2.xml.base64
|
239
|
+
- test/support/saml/responses/response3.xml.base64
|
240
|
+
- test/support/saml/responses/response4.xml.base64
|
241
|
+
- test/support/saml/responses/response5.xml.base64
|
242
|
+
- test/support/saml/responses/response_with_ampersands.xml
|
243
|
+
- test/support/saml/responses/response_with_ampersands.xml.base64
|
244
|
+
- test/support/saml/responses/response_with_multiple_attribute_values.xml
|
245
|
+
- test/support/saml/responses/simple_saml_php.xml
|
246
|
+
- test/support/saml/responses/starfield_response.xml.base64
|
247
|
+
- test/support/saml/responses/wrapped_response_2.xml.base64
|
248
|
+
- test/test_helper.rb
|
249
|
+
homepage: https://maestrano.com
|
250
|
+
licenses:
|
251
|
+
- MIT
|
252
|
+
metadata: {}
|
253
|
+
post_install_message:
|
254
|
+
rdoc_options: []
|
255
|
+
require_paths:
|
256
|
+
- lib
|
257
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
258
|
+
requirements:
|
259
|
+
- - ">="
|
260
|
+
- !ruby/object:Gem::Version
|
261
|
+
version: '0'
|
262
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
263
|
+
requirements:
|
264
|
+
- - ">="
|
265
|
+
- !ruby/object:Gem::Version
|
266
|
+
version: '0'
|
267
|
+
requirements: []
|
268
|
+
rubyforge_project:
|
269
|
+
rubygems_version: 2.2.1
|
270
|
+
signing_key:
|
271
|
+
specification_version: 4
|
272
|
+
summary: Ruby bindings for the Maestrano API
|
273
|
+
test_files:
|
274
|
+
- test/helpers/api_helpers.rb
|
275
|
+
- test/helpers/saml_helpers.rb
|
276
|
+
- test/maestrano/account/bill_test.rb
|
277
|
+
- test/maestrano/account/recurring_bill_test.rb
|
278
|
+
- test/maestrano/api/list_object_test.rb
|
279
|
+
- test/maestrano/api/object_test.rb
|
280
|
+
- test/maestrano/api/resource_test.rb
|
281
|
+
- test/maestrano/api/util_test.rb
|
282
|
+
- test/maestrano/maestrano_test.rb
|
283
|
+
- test/maestrano/open_struct_test.rb
|
284
|
+
- test/maestrano/saml/request_test.rb
|
285
|
+
- test/maestrano/saml/response_test.rb
|
286
|
+
- test/maestrano/saml/settings_test.rb
|
287
|
+
- test/maestrano/sso/base_group_test.rb
|
288
|
+
- test/maestrano/sso/base_membership_test.rb
|
289
|
+
- test/maestrano/sso/base_user_test.rb
|
290
|
+
- test/maestrano/sso/group_test.rb
|
291
|
+
- test/maestrano/sso/session_test.rb
|
292
|
+
- test/maestrano/sso/user_test.rb
|
293
|
+
- test/maestrano/sso_test.rb
|
294
|
+
- test/maestrano/xml_security/signed_document.rb
|
295
|
+
- test/support/saml/certificates/certificate1
|
296
|
+
- test/support/saml/certificates/r1_certificate2_base64
|
297
|
+
- test/support/saml/responses/adfs_response_sha1.xml
|
298
|
+
- test/support/saml/responses/adfs_response_sha256.xml
|
299
|
+
- test/support/saml/responses/adfs_response_sha384.xml
|
300
|
+
- test/support/saml/responses/adfs_response_sha512.xml
|
301
|
+
- test/support/saml/responses/no_signature_ns.xml
|
302
|
+
- test/support/saml/responses/open_saml_response.xml
|
303
|
+
- test/support/saml/responses/r1_response6.xml.base64
|
304
|
+
- test/support/saml/responses/response1.xml.base64
|
305
|
+
- test/support/saml/responses/response2.xml.base64
|
306
|
+
- test/support/saml/responses/response3.xml.base64
|
307
|
+
- test/support/saml/responses/response4.xml.base64
|
308
|
+
- test/support/saml/responses/response5.xml.base64
|
309
|
+
- test/support/saml/responses/response_with_ampersands.xml
|
310
|
+
- test/support/saml/responses/response_with_ampersands.xml.base64
|
311
|
+
- test/support/saml/responses/response_with_multiple_attribute_values.xml
|
312
|
+
- test/support/saml/responses/simple_saml_php.xml
|
313
|
+
- test/support/saml/responses/starfield_response.xml.base64
|
314
|
+
- test/support/saml/responses/wrapped_response_2.xml.base64
|
315
|
+
- test/test_helper.rb
|