forked from aeden/rsaml
/
rsaml.rb
66 lines (55 loc) · 1.45 KB
/
rsaml.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
if RUBY_VERSION =~ /1\.8/
$KCODE = 'UTF-8'
end
module RSAML
def saml_namespaces
{
'saml' => 'urn:oasis:names:tc:SAML:2.0:assertion',
'samlp' => 'urn:oasis:names:tc:SAML:2.0:protocol',
'ds' => 'http://www.w3.org/2000/09/xmldsig#',
'xenc' => 'http://www.w3.org/2001/04/xmlenc#',
'xs' => 'http://www.w3.org/2001/XMLSchema',
'xsi' => 'http://www.w3.org/2001/XMLSchema-instance'
}
end
end
require 'rubygems'
require 'uuid'
require 'builder'
begin
require 'active_support'
require 'active_support/time'
require 'active_support/time_with_zone'
require 'active_support/core_ext'
rescue LoadError
require 'activesupport'
end
require "rexml/document"
$:.unshift(File.dirname(__FILE__))
require 'xml_sig'
require 'xml_enc'
require 'rsaml/ext/string'
require 'rsaml/encrypted'
require 'rsaml/validatable'
require 'rsaml/errors'
require 'rsaml/action'
require 'rsaml/action_namespace'
require 'rsaml/advice'
require 'rsaml/assertion'
require 'rsaml/attribute'
require 'rsaml/attribute_value'
require 'rsaml/audience'
require 'rsaml/authentication_context'
require 'rsaml/condition'
require 'rsaml/conditions'
require 'rsaml/evidence'
require 'rsaml/identifier'
require 'rsaml/proxy_restriction'
require 'rsaml/statement'
require 'rsaml/subject'
require 'rsaml/subject_confirmation'
require 'rsaml/subject_confirmation_data'
require 'rsaml/subject_locality'
require 'rsaml/protocol'
require 'rsaml/binding'
require 'rsaml/parser'