maestrano 0.1.0
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 +43 -0
- data/LICENSE +21 -0
- data/README.md +4 -0
- data/Rakefile +32 -0
- data/bin/maestrano-console +9 -0
- data/lib/maestrano.rb +114 -0
- data/lib/maestrano/account/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 +216 -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 +39 -0
- data/lib/maestrano/api/util.rb +121 -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 +81 -0
- data/lib/maestrano/sso/base_group.rb +31 -0
- data/lib/maestrano/sso/base_user.rb +75 -0
- data/lib/maestrano/sso/group.rb +24 -0
- data/lib/maestrano/sso/session.rb +63 -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/test/helpers/api_helpers.rb +82 -0
- data/test/helpers/saml_helpers.rb +62 -0
- data/test/maestrano/account/bill_test.rb +48 -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 +49 -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_user_test.rb +114 -0
- data/test/maestrano/sso/group_test.rb +47 -0
- data/test/maestrano/sso/session_test.rb +108 -0
- data/test/maestrano/sso/user_test.rb +65 -0
- data/test/maestrano/sso_test.rb +81 -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 +46 -0
- metadata +305 -0
@@ -0,0 +1,93 @@
|
|
1
|
+
PHNhbWxwOlJlc3BvbnNlIHhtbG5zOnNhbWw9InVybjpvYXNpczpuYW1lczp0
|
2
|
+
YzpTQU1MOjIuMDphc3NlcnRpb24iIHhtbG5zOnNhbWxwPSJ1cm46b2FzaXM6
|
3
|
+
bmFtZXM6dGM6U0FNTDoyLjA6cHJvdG9jb2wiIElEPSJHT1NBTUxSMTMwNzE1
|
4
|
+
NDEyMjM0MDkiIFZlcnNpb249IjIuMCIgSXNzdWVJbnN0YW50PSIyMDExLTA2
|
5
|
+
LTA0VDAyOjIyOjAyWiIgRGVzdGluYXRpb249InJlY2lwaWVudCI+PHNhbWw6
|
6
|
+
SXNzdWVyPmh0dHBzOi8vYXBwLm9uZWxvZ2luLmNvbS9zYW1sMjwvc2FtbDpJ
|
7
|
+
c3N1ZXI+PHNhbWxwOlN0YXR1cz48c2FtbHA6U3RhdHVzQ29kZSBWYWx1ZT0i
|
8
|
+
dXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOnN0YXR1czpTdWNjZXNzIi8+
|
9
|
+
PC9zYW1scDpTdGF0dXM+PHNhbWw6QXNzZXJ0aW9uIHhtbG5zOnhzPSJodHRw
|
10
|
+
Oi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYSIgeG1sbnM6eHNpPSJodHRw
|
11
|
+
Oi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZSIgVmVyc2lv
|
12
|
+
bj0iMi4wIiBJRD0iZmFrZV9hc3NlcnRpb24iIElzc3VlSW5zdGFudD0iMjAx
|
13
|
+
MS0wNi0wNFQwMjoyMjowMloiPjxzYW1sOklzc3Vlcj5odHRwczovL2FwcC5v
|
14
|
+
bmVsb2dpbi5jb20vc2FtbDI8L3NhbWw6SXNzdWVyPjxzYW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GFzc2Vz
|
91
|
+
OlBhc3N3b3JkUHJvdGVjdGVkVHJhbnNwb3J0PC9zYW1sOkF1dGhuQ29udGV4
|
92
|
+
dENsYXNzUmVmPjwvc2FtbDpBdXRobkNvbnRleHQ+PC9zYW1sOkF1dGhuU3Rh
|
93
|
+
dGVtZW50Pjwvc2FtbDpBc3NlcnRpb24+PC9zYW1scDpSZXNwb25zZT4=
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<samlp:Response xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol" ID="GOSAMLR12901174571794" Version="2.0" IssueInstant="2010-11-18T21:57:37Z" Destination="{recipient}">
|
2
|
+
<samlp:Status>
|
3
|
+
<samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/></samlp:Status>
|
4
|
+
<saml:Assertion xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="2.0" ID="pfxa46574df-b3b0-a06a-23c8-636413198772" IssueInstant="2010-11-18T21:57:37Z">
|
5
|
+
<saml:Issuer>https://app.onelogin.com/saml/metadata/13590</saml:Issuer>
|
6
|
+
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
|
7
|
+
<ds:SignedInfo>
|
8
|
+
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
|
9
|
+
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
|
10
|
+
<ds:Reference URI="#pfxa46574df-b3b0-a06a-23c8-636413198772">
|
11
|
+
<ds:Transforms>
|
12
|
+
<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
|
13
|
+
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
|
14
|
+
</ds:Transforms>
|
15
|
+
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
|
16
|
+
<ds:DigestValue>pJQ7MS/ek4KRRWGmv/H43ReHYMs=</ds:DigestValue>
|
17
|
+
</ds:Reference>
|
18
|
+
</ds:SignedInfo>
|
19
|
+
<ds:SignatureValue>yiveKcPdDpuDNj6shrQ3ABwr/cA3CryD2phG/xLZszKWxU5/mlaKt8ewbZOdKKvtOs2pHBy5Dua3k94AF+zxGyel5gOowmoyXJr+AOr+kPO0vli1V8o3hPPUZwRgSX6Q9pS1CqQghKiEasRyylqqJUaPYzmOzOE8/XlMkwiWmO0=</ds:SignatureValue>
|
20
|
+
<ds:KeyInfo>
|
21
|
+
<ds:X509Data>
|
22
|
+
<ds:X509Certificate>MIIBrTCCAaGgAwIBAgIBATADBgEAMGcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRUwEwYDVQQHDAxTYW50YSBNb25pY2ExETAPBgNVBAoMCE9uZUxvZ2luMRkwFwYDVQQDDBBhcHAub25lbG9naW4uY29tMB4XDTEwMDMwOTA5NTg0NVoXDTE1MDMwOTA5NTg0NVowZzELMAkGA1UEBhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWExFTATBgNVBAcMDFNhbnRhIE1vbmljYTERMA8GA1UECgwIT25lTG9naW4xGTAXBgNVBAMMEGFwcC5vbmVsb2dpbi5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAOjSu1fjPy8d5w4QyL1+zd4hIw1Mkkff4WY/TLG8OZkU5YTSWmmHPD5kvYH5uoXS/6qQ81qXpR2wV8CTowZJULg09ddRdRn8Qsqj1FyOC5slE3y2bZ2oFua72of/49fpujnFT6KnQ61CBMqlDoTQqOT62vGJ8nP6MZWvA6sxqud5AgMBAAEwAwYBAAMBAA==</ds:X509Certificate>
|
23
|
+
</ds:X509Data>
|
24
|
+
</ds:KeyInfo>
|
25
|
+
</ds:Signature>
|
26
|
+
<saml:Subject>
|
27
|
+
<saml:NameID Format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress">support@onelogin.com</saml:NameID>
|
28
|
+
<saml:SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
|
29
|
+
<saml:SubjectConfirmationData NotOnOrAfter="2010-11-18T22:02:37Z" Recipient="{recipient}"/></saml:SubjectConfirmation>
|
30
|
+
</saml:Subject>
|
31
|
+
<saml:Conditions NotBefore="2010-11-18T21:52:37Z" NotOnOrAfter="2010-11-18T22:02:37Z">
|
32
|
+
<saml:AudienceRestriction>
|
33
|
+
<saml:Audience>{audience}</saml:Audience>
|
34
|
+
</saml:AudienceRestriction>
|
35
|
+
</saml:Conditions>
|
36
|
+
<saml:AuthnStatement AuthnInstant="2010-11-18T21:57:37Z" SessionNotOnOrAfter="2010-11-19T21:57:37Z" SessionIndex="_531c32d283bdff7e04e487bcdbc4dd8d">
|
37
|
+
<saml:AuthnContext>
|
38
|
+
<saml:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:Password</saml:AuthnContextClassRef>
|
39
|
+
</saml:AuthnContext>
|
40
|
+
</saml:AuthnStatement>
|
41
|
+
<saml:AttributeStatement>
|
42
|
+
<saml:Attribute Name="uid">
|
43
|
+
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">demo</saml:AttributeValue>
|
44
|
+
</saml:Attribute>
|
45
|
+
<saml:Attribute Name="another_value">
|
46
|
+
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">value1</saml:AttributeValue>
|
47
|
+
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">value2</saml:AttributeValue>
|
48
|
+
</saml:Attribute>
|
49
|
+
<saml:Attribute Name="role">
|
50
|
+
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">role1</saml:AttributeValue>
|
51
|
+
</saml:Attribute>
|
52
|
+
<saml:Attribute Name="role">
|
53
|
+
<saml:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">role2</saml:AttributeValue>
|
54
|
+
</saml:Attribute>
|
55
|
+
</saml:AttributeStatement>
|
56
|
+
</saml:Assertion>
|
57
|
+
</samlp:Response>
|
@@ -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>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cnRoLmNvbTwvbWQ6RW1haWxBZGRy
|
149
|
+
ZXNzPg0KICAgIDwvbWQ6Q29udGFjdFBlcnNvbj4NCiAgPC9tZDpFbnRpdHlEZXNj
|
150
|
+
cmlwdG9yPg0KPC9zYW1scDpSZXNwb25zZT4=
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,46 @@
|
|
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.api_key = "g15354F34f3x5z"
|
42
|
+
config.environment = 'production'
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
metadata
ADDED
@@ -0,0 +1,305 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: maestrano
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Arnaud Lachaume
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-05-26 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/api/error/authentication_error.rb
|
172
|
+
- lib/maestrano/api/error/base_error.rb
|
173
|
+
- lib/maestrano/api/error/connection_error.rb
|
174
|
+
- lib/maestrano/api/error/invalid_request_error.rb
|
175
|
+
- lib/maestrano/api/list_object.rb
|
176
|
+
- lib/maestrano/api/object.rb
|
177
|
+
- lib/maestrano/api/operation/base.rb
|
178
|
+
- lib/maestrano/api/operation/create.rb
|
179
|
+
- lib/maestrano/api/operation/delete.rb
|
180
|
+
- lib/maestrano/api/operation/list.rb
|
181
|
+
- lib/maestrano/api/operation/update.rb
|
182
|
+
- lib/maestrano/api/resource.rb
|
183
|
+
- lib/maestrano/api/util.rb
|
184
|
+
- lib/maestrano/saml/attribute_value.rb
|
185
|
+
- lib/maestrano/saml/metadata.rb
|
186
|
+
- lib/maestrano/saml/request.rb
|
187
|
+
- lib/maestrano/saml/response.rb
|
188
|
+
- lib/maestrano/saml/schemas/saml20assertion_schema.xsd
|
189
|
+
- lib/maestrano/saml/schemas/saml20protocol_schema.xsd
|
190
|
+
- lib/maestrano/saml/schemas/xenc_schema.xsd
|
191
|
+
- lib/maestrano/saml/schemas/xmldsig_schema.xsd
|
192
|
+
- lib/maestrano/saml/settings.rb
|
193
|
+
- lib/maestrano/saml/validation_error.rb
|
194
|
+
- lib/maestrano/sso.rb
|
195
|
+
- lib/maestrano/sso/base_group.rb
|
196
|
+
- lib/maestrano/sso/base_user.rb
|
197
|
+
- lib/maestrano/sso/group.rb
|
198
|
+
- lib/maestrano/sso/session.rb
|
199
|
+
- lib/maestrano/sso/user.rb
|
200
|
+
- lib/maestrano/version.rb
|
201
|
+
- lib/maestrano/xml_security/signed_document.rb
|
202
|
+
- maestrano.gemspec
|
203
|
+
- test/helpers/api_helpers.rb
|
204
|
+
- test/helpers/saml_helpers.rb
|
205
|
+
- test/maestrano/account/bill_test.rb
|
206
|
+
- test/maestrano/api/list_object_test.rb
|
207
|
+
- test/maestrano/api/object_test.rb
|
208
|
+
- test/maestrano/api/resource_test.rb
|
209
|
+
- test/maestrano/api/util_test.rb
|
210
|
+
- test/maestrano/maestrano_test.rb
|
211
|
+
- test/maestrano/saml/request_test.rb
|
212
|
+
- test/maestrano/saml/response_test.rb
|
213
|
+
- test/maestrano/saml/settings_test.rb
|
214
|
+
- test/maestrano/sso/base_group_test.rb
|
215
|
+
- test/maestrano/sso/base_user_test.rb
|
216
|
+
- test/maestrano/sso/group_test.rb
|
217
|
+
- test/maestrano/sso/session_test.rb
|
218
|
+
- test/maestrano/sso/user_test.rb
|
219
|
+
- test/maestrano/sso_test.rb
|
220
|
+
- test/maestrano/xml_security/signed_document.rb
|
221
|
+
- test/support/saml/certificates/certificate1
|
222
|
+
- test/support/saml/certificates/r1_certificate2_base64
|
223
|
+
- test/support/saml/responses/adfs_response_sha1.xml
|
224
|
+
- test/support/saml/responses/adfs_response_sha256.xml
|
225
|
+
- test/support/saml/responses/adfs_response_sha384.xml
|
226
|
+
- test/support/saml/responses/adfs_response_sha512.xml
|
227
|
+
- test/support/saml/responses/no_signature_ns.xml
|
228
|
+
- test/support/saml/responses/open_saml_response.xml
|
229
|
+
- test/support/saml/responses/r1_response6.xml.base64
|
230
|
+
- test/support/saml/responses/response1.xml.base64
|
231
|
+
- test/support/saml/responses/response2.xml.base64
|
232
|
+
- test/support/saml/responses/response3.xml.base64
|
233
|
+
- test/support/saml/responses/response4.xml.base64
|
234
|
+
- test/support/saml/responses/response5.xml.base64
|
235
|
+
- test/support/saml/responses/response_with_ampersands.xml
|
236
|
+
- test/support/saml/responses/response_with_ampersands.xml.base64
|
237
|
+
- test/support/saml/responses/response_with_multiple_attribute_values.xml
|
238
|
+
- test/support/saml/responses/simple_saml_php.xml
|
239
|
+
- test/support/saml/responses/starfield_response.xml.base64
|
240
|
+
- test/support/saml/responses/wrapped_response_2.xml.base64
|
241
|
+
- test/test_helper.rb
|
242
|
+
homepage: https://maestrano.com
|
243
|
+
licenses:
|
244
|
+
- MIT
|
245
|
+
metadata: {}
|
246
|
+
post_install_message:
|
247
|
+
rdoc_options: []
|
248
|
+
require_paths:
|
249
|
+
- lib
|
250
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
251
|
+
requirements:
|
252
|
+
- - ! '>='
|
253
|
+
- !ruby/object:Gem::Version
|
254
|
+
version: '0'
|
255
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
256
|
+
requirements:
|
257
|
+
- - ! '>='
|
258
|
+
- !ruby/object:Gem::Version
|
259
|
+
version: '0'
|
260
|
+
requirements: []
|
261
|
+
rubyforge_project:
|
262
|
+
rubygems_version: 2.2.1
|
263
|
+
signing_key:
|
264
|
+
specification_version: 4
|
265
|
+
summary: Ruby bindings for the Maestrano API
|
266
|
+
test_files:
|
267
|
+
- test/helpers/api_helpers.rb
|
268
|
+
- test/helpers/saml_helpers.rb
|
269
|
+
- test/maestrano/account/bill_test.rb
|
270
|
+
- test/maestrano/api/list_object_test.rb
|
271
|
+
- test/maestrano/api/object_test.rb
|
272
|
+
- test/maestrano/api/resource_test.rb
|
273
|
+
- test/maestrano/api/util_test.rb
|
274
|
+
- test/maestrano/maestrano_test.rb
|
275
|
+
- test/maestrano/saml/request_test.rb
|
276
|
+
- test/maestrano/saml/response_test.rb
|
277
|
+
- test/maestrano/saml/settings_test.rb
|
278
|
+
- test/maestrano/sso/base_group_test.rb
|
279
|
+
- test/maestrano/sso/base_user_test.rb
|
280
|
+
- test/maestrano/sso/group_test.rb
|
281
|
+
- test/maestrano/sso/session_test.rb
|
282
|
+
- test/maestrano/sso/user_test.rb
|
283
|
+
- test/maestrano/sso_test.rb
|
284
|
+
- test/maestrano/xml_security/signed_document.rb
|
285
|
+
- test/support/saml/certificates/certificate1
|
286
|
+
- test/support/saml/certificates/r1_certificate2_base64
|
287
|
+
- test/support/saml/responses/adfs_response_sha1.xml
|
288
|
+
- test/support/saml/responses/adfs_response_sha256.xml
|
289
|
+
- test/support/saml/responses/adfs_response_sha384.xml
|
290
|
+
- test/support/saml/responses/adfs_response_sha512.xml
|
291
|
+
- test/support/saml/responses/no_signature_ns.xml
|
292
|
+
- test/support/saml/responses/open_saml_response.xml
|
293
|
+
- test/support/saml/responses/r1_response6.xml.base64
|
294
|
+
- test/support/saml/responses/response1.xml.base64
|
295
|
+
- test/support/saml/responses/response2.xml.base64
|
296
|
+
- test/support/saml/responses/response3.xml.base64
|
297
|
+
- test/support/saml/responses/response4.xml.base64
|
298
|
+
- test/support/saml/responses/response5.xml.base64
|
299
|
+
- test/support/saml/responses/response_with_ampersands.xml
|
300
|
+
- test/support/saml/responses/response_with_ampersands.xml.base64
|
301
|
+
- test/support/saml/responses/response_with_multiple_attribute_values.xml
|
302
|
+
- test/support/saml/responses/simple_saml_php.xml
|
303
|
+
- test/support/saml/responses/starfield_response.xml.base64
|
304
|
+
- test/support/saml/responses/wrapped_response_2.xml.base64
|
305
|
+
- test/test_helper.rb
|