saml-kit 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +66 -61
- data/Gemfile.lock +79 -76
- data/LICENSE.txt +1 -1
- data/README.md +4 -8
- data/Rakefile +0 -1
- data/lib/saml/kit/assertion.rb +2 -2
- data/lib/saml/kit/concerns/respondable.rb +1 -1
- data/lib/saml/kit/concerns/trustable.rb +3 -3
- data/lib/saml/kit/concerns/xsd_validatable.rb +1 -1
- data/lib/saml/kit/document.rb +2 -2
- data/lib/saml/kit/invalid_document.rb +1 -1
- data/lib/saml/kit/metadata.rb +2 -2
- data/lib/saml/kit/null_assertion.rb +1 -1
- data/lib/saml/kit/response.rb +2 -2
- data/lib/saml/kit/version.rb +1 -1
- data/saml-kit.gemspec +5 -5
- metadata +15 -21
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d77013b5cfdff5bcf857a48182eacafc9a8683cb0171c4cd383a8d53f522f5ea
|
|
4
|
+
data.tar.gz: 4a56b20855f4e83f47545b7fce9c31f47216b0bdc51bacdab6a29ba1e410f3d9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f7eed807fd7d0a00de9fa669e6b52ae65f5487bcc1b408065d3c510d6323a7879d4412c67abe2a79a5fe7a08a38fa17296112586b4cd960dd4c13e1ca30ba7fa
|
|
7
|
+
data.tar.gz: 2832e9ba9fc7453ea1db370b69153db556b72cb2d0e0990e3216412669fb6212c73145654ae4edd0f2c4d04b5b464979a342a11343bc3c2bff4963b877379590
|
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Version 1.
|
|
1
|
+
Version 1.2.0
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
All notable changes to this project will be documented in this file.
|
|
@@ -7,7 +7,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
7
7
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
## [1.2.0] - 2021-02-04
|
|
12
|
+
### Changed
|
|
13
|
+
- Use [ActiveModel::Errors#add](https://www.rubydoc.info/docs/rails/ActiveModel%2FErrors:add)
|
|
14
|
+
- Update minimum activemodel version to `5.1`.
|
|
11
15
|
|
|
12
16
|
## [1.1.0] - 2019-04-30
|
|
13
17
|
### Added
|
|
@@ -83,62 +87,63 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
83
87
|
### Removed
|
|
84
88
|
- Removed optional SessionNotOnOrAfter attribute from AuthnStatement.
|
|
85
89
|
|
|
86
|
-
[Unreleased]: https://github.com/
|
|
87
|
-
[1.
|
|
88
|
-
[1.0
|
|
89
|
-
[1.0.
|
|
90
|
-
[1.0.
|
|
91
|
-
[1.0.
|
|
92
|
-
[1.0.
|
|
93
|
-
[1.0.
|
|
94
|
-
[1.0.
|
|
95
|
-
[1.0.
|
|
96
|
-
[1.0.
|
|
97
|
-
[1.0.
|
|
98
|
-
[1.0.
|
|
99
|
-
[1.0.
|
|
100
|
-
[1.0.
|
|
101
|
-
[1.0.
|
|
102
|
-
[1.0.
|
|
103
|
-
[1.0.
|
|
104
|
-
[1.0.
|
|
105
|
-
[1.0.
|
|
106
|
-
[1.0.
|
|
107
|
-
[1.0.
|
|
108
|
-
[1.0.
|
|
109
|
-
[1.0.
|
|
110
|
-
[1.0.
|
|
111
|
-
[1.0.
|
|
112
|
-
[1.0.
|
|
113
|
-
[1.0.
|
|
114
|
-
[1.0.
|
|
115
|
-
[1.0.
|
|
116
|
-
[1.0.
|
|
117
|
-
[1.0.
|
|
118
|
-
[1.0.
|
|
119
|
-
[1.0.
|
|
120
|
-
[0.
|
|
121
|
-
[0.3.
|
|
122
|
-
[0.3.
|
|
123
|
-
[0.3.
|
|
124
|
-
[0.3.
|
|
125
|
-
[0.3.
|
|
126
|
-
[0.3.
|
|
127
|
-
[0.
|
|
128
|
-
[0.2.
|
|
129
|
-
[0.2.
|
|
130
|
-
[0.2.
|
|
131
|
-
[0.2.
|
|
132
|
-
[0.2.
|
|
133
|
-
[0.2.
|
|
134
|
-
[0.2.
|
|
135
|
-
[0.2.
|
|
136
|
-
[0.2.
|
|
137
|
-
[0.2.
|
|
138
|
-
[0.2.
|
|
139
|
-
[0.2.
|
|
140
|
-
[0.2.
|
|
141
|
-
[0.2.
|
|
142
|
-
[0.2.
|
|
143
|
-
[0.2.
|
|
144
|
-
[0.2.
|
|
90
|
+
[Unreleased]: https://github.com/xlgmokha/saml-kit/compare/v1.2.0...HEAD
|
|
91
|
+
[1.2.0]: https://github.com/xlgmokha/saml-kit/compare/v1.1.0...v1.2.0
|
|
92
|
+
[1.1.0]: https://github.com/xlgmokha/saml-kit/compare/v1.0.31...v1.1.0
|
|
93
|
+
[1.0.31]: https://github.com/xlgmokha/saml-kit/compare/v1.0.30...v1.0.31
|
|
94
|
+
[1.0.30]: https://github.com/xlgmokha/saml-kit/compare/v1.0.29...v1.0.30
|
|
95
|
+
[1.0.29]: https://github.com/xlgmokha/saml-kit/compare/v1.0.28...v1.0.29
|
|
96
|
+
[1.0.28]: https://github.com/xlgmokha/saml-kit/compare/v1.0.27...v1.0.28
|
|
97
|
+
[1.0.27]: https://github.com/xlgmokha/saml-kit/compare/v1.0.26...v1.0.27
|
|
98
|
+
[1.0.26]: https://github.com/xlgmokha/saml-kit/compare/v1.0.25...v1.0.26
|
|
99
|
+
[1.0.25]: https://github.com/xlgmokha/saml-kit/compare/v1.0.24...v1.0.25
|
|
100
|
+
[1.0.24]: https://github.com/xlgmokha/saml-kit/compare/v1.0.23...v1.0.24
|
|
101
|
+
[1.0.23]: https://github.com/xlgmokha/saml-kit/compare/v1.0.22...v1.0.23
|
|
102
|
+
[1.0.22]: https://github.com/xlgmokha/saml-kit/compare/v1.0.21...v1.0.22
|
|
103
|
+
[1.0.21]: https://github.com/xlgmokha/saml-kit/compare/v1.0.20...v1.0.21
|
|
104
|
+
[1.0.20]: https://github.com/xlgmokha/saml-kit/compare/v1.0.19...v1.0.20
|
|
105
|
+
[1.0.19]: https://github.com/xlgmokha/saml-kit/compare/v1.0.18...v1.0.19
|
|
106
|
+
[1.0.18]: https://github.com/xlgmokha/saml-kit/compare/v1.0.17...v1.0.18
|
|
107
|
+
[1.0.17]: https://github.com/xlgmokha/saml-kit/compare/v1.0.16...v1.0.17
|
|
108
|
+
[1.0.16]: https://github.com/xlgmokha/saml-kit/compare/v1.0.15...v1.0.16
|
|
109
|
+
[1.0.15]: https://github.com/xlgmokha/saml-kit/compare/v1.0.14...v1.0.15
|
|
110
|
+
[1.0.14]: https://github.com/xlgmokha/saml-kit/compare/v1.0.13...v1.0.14
|
|
111
|
+
[1.0.13]: https://github.com/xlgmokha/saml-kit/compare/v1.0.12...v1.0.13
|
|
112
|
+
[1.0.12]: https://github.com/xlgmokha/saml-kit/compare/v1.0.11...v1.0.12
|
|
113
|
+
[1.0.11]: https://github.com/xlgmokha/saml-kit/compare/v1.0.10...v1.0.11
|
|
114
|
+
[1.0.10]: https://github.com/xlgmokha/saml-kit/compare/v1.0.9...v1.0.10
|
|
115
|
+
[1.0.9]: https://github.com/xlgmokha/saml-kit/compare/v1.0.8...v1.0.9
|
|
116
|
+
[1.0.8]: https://github.com/xlgmokha/saml-kit/compare/v1.0.7...v1.0.8
|
|
117
|
+
[1.0.7]: https://github.com/xlgmokha/saml-kit/compare/v1.0.6...v1.0.7
|
|
118
|
+
[1.0.6]: https://github.com/xlgmokha/saml-kit/compare/v1.0.5...v1.0.6
|
|
119
|
+
[1.0.5]: https://github.com/xlgmokha/saml-kit/compare/v1.0.4...v1.0.5
|
|
120
|
+
[1.0.4]: https://github.com/xlgmokha/saml-kit/compare/v1.0.3...v1.0.4
|
|
121
|
+
[1.0.3]: https://github.com/xlgmokha/saml-kit/compare/v1.0.2...v1.0.3
|
|
122
|
+
[1.0.2]: https://github.com/xlgmokha/saml-kit/compare/v1.0.1...v1.0.2
|
|
123
|
+
[1.0.1]: https://github.com/xlgmokha/saml-kit/compare/v1.0.0...v1.0.1
|
|
124
|
+
[1.0.0]: https://github.com/xlgmokha/saml-kit/compare/v0.3.6...v1.0.0
|
|
125
|
+
[0.3.6]: https://github.com/xlgmokha/saml-kit/compare/v0.3.5...v0.3.6
|
|
126
|
+
[0.3.5]: https://github.com/xlgmokha/saml-kit/compare/v0.3.4...v0.3.5
|
|
127
|
+
[0.3.4]: https://github.com/xlgmokha/saml-kit/compare/v0.3.3...v0.3.4
|
|
128
|
+
[0.3.3]: https://github.com/xlgmokha/saml-kit/compare/v0.3.2...v0.3.3
|
|
129
|
+
[0.3.2]: https://github.com/xlgmokha/saml-kit/compare/v0.3.1...v0.3.2
|
|
130
|
+
[0.3.1]: https://github.com/xlgmokha/saml-kit/compare/v0.3.0...v0.3.1
|
|
131
|
+
[0.3.0]: https://github.com/xlgmokha/saml-kit/compare/v0.2.18...v0.3.0
|
|
132
|
+
[0.2.18]: https://github.com/xlgmokha/saml-kit/compare/v0.2.17...v0.2.18
|
|
133
|
+
[0.2.17]: https://github.com/xlgmokha/saml-kit/compare/v0.2.16...v0.2.17
|
|
134
|
+
[0.2.16]: https://github.com/xlgmokha/saml-kit/compare/v0.2.15...v0.2.16
|
|
135
|
+
[0.2.15]: https://github.com/xlgmokha/saml-kit/compare/v0.2.14...v0.2.15
|
|
136
|
+
[0.2.14]: https://github.com/xlgmokha/saml-kit/compare/v0.2.13...v0.2.14
|
|
137
|
+
[0.2.13]: https://github.com/xlgmokha/saml-kit/compare/v0.2.12...v0.2.13
|
|
138
|
+
[0.2.12]: https://github.com/xlgmokha/saml-kit/compare/v0.2.11...v0.2.12
|
|
139
|
+
[0.2.11]: https://github.com/xlgmokha/saml-kit/compare/v0.2.10...v0.2.11
|
|
140
|
+
[0.2.10]: https://github.com/xlgmokha/saml-kit/compare/v0.2.9...v0.2.10
|
|
141
|
+
[0.2.9]: https://github.com/xlgmokha/saml-kit/compare/v0.2.8...v0.2.9
|
|
142
|
+
[0.2.8]: https://github.com/xlgmokha/saml-kit/compare/v0.2.7...v0.2.8
|
|
143
|
+
[0.2.7]: https://github.com/xlgmokha/saml-kit/compare/v0.2.6...v0.2.7
|
|
144
|
+
[0.2.6]: https://github.com/xlgmokha/saml-kit/compare/v0.2.5...v0.2.6
|
|
145
|
+
[0.2.5]: https://github.com/xlgmokha/saml-kit/compare/v0.2.4...v0.2.5
|
|
146
|
+
[0.2.4]: https://github.com/xlgmokha/saml-kit/compare/v0.2.3...v0.2.4
|
|
147
|
+
[0.2.3]: https://github.com/xlgmokha/saml-kit/compare/v0.2.2...v0.2.3
|
|
148
|
+
[0.2.2]: https://github.com/xlgmokha/saml-kit/compare/v0.2.1...v0.2.2
|
|
149
|
+
[0.2.1]: https://github.com/xlgmokha/saml-kit/compare/v0.1.0...v0.2.1
|
data/Gemfile.lock
CHANGED
|
@@ -1,104 +1,107 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
saml-kit (1.
|
|
5
|
-
activemodel (
|
|
4
|
+
saml-kit (1.2.0)
|
|
5
|
+
activemodel (~> 5.1)
|
|
6
6
|
net-hippie (~> 0.1)
|
|
7
|
-
xml-kit (
|
|
7
|
+
xml-kit (~> 0.4)
|
|
8
8
|
|
|
9
9
|
GEM
|
|
10
10
|
remote: https://rubygems.org/
|
|
11
11
|
specs:
|
|
12
|
-
activemodel (5.2.
|
|
13
|
-
activesupport (= 5.2.
|
|
14
|
-
activesupport (5.2.
|
|
12
|
+
activemodel (5.2.4.4)
|
|
13
|
+
activesupport (= 5.2.4.4)
|
|
14
|
+
activesupport (5.2.4.4)
|
|
15
15
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
16
16
|
i18n (>= 0.7, < 2)
|
|
17
17
|
minitest (~> 5.1)
|
|
18
18
|
tzinfo (~> 1.1)
|
|
19
|
-
addressable (2.
|
|
20
|
-
public_suffix (>= 2.0.2, <
|
|
21
|
-
ast (2.4.
|
|
22
|
-
benchmark-malloc (0.
|
|
23
|
-
benchmark-perf (0.
|
|
24
|
-
benchmark-trend (0.
|
|
25
|
-
builder (3.2.
|
|
26
|
-
bundler-audit (0.
|
|
19
|
+
addressable (2.7.0)
|
|
20
|
+
public_suffix (>= 2.0.2, < 5.0)
|
|
21
|
+
ast (2.4.2)
|
|
22
|
+
benchmark-malloc (0.2.0)
|
|
23
|
+
benchmark-perf (0.6.0)
|
|
24
|
+
benchmark-trend (0.4.0)
|
|
25
|
+
builder (3.2.4)
|
|
26
|
+
bundler-audit (0.7.0.1)
|
|
27
27
|
bundler (>= 1.2.0, < 3)
|
|
28
|
-
thor (
|
|
29
|
-
concurrent-ruby (1.1.
|
|
30
|
-
crack (0.4.
|
|
31
|
-
|
|
32
|
-
diff-lcs (1.
|
|
33
|
-
docile (1.3.
|
|
34
|
-
ffaker (2.
|
|
35
|
-
hashdiff (0.
|
|
36
|
-
i18n (1.
|
|
28
|
+
thor (>= 0.18, < 2)
|
|
29
|
+
concurrent-ruby (1.1.8)
|
|
30
|
+
crack (0.4.5)
|
|
31
|
+
rexml
|
|
32
|
+
diff-lcs (1.4.4)
|
|
33
|
+
docile (1.3.5)
|
|
34
|
+
ffaker (2.17.0)
|
|
35
|
+
hashdiff (1.0.1)
|
|
36
|
+
i18n (1.8.8)
|
|
37
37
|
concurrent-ruby (~> 1.0)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
ast (~> 2.4.0)
|
|
48
|
-
psych (3.1.0)
|
|
49
|
-
public_suffix (3.0.3)
|
|
38
|
+
minitest (5.14.3)
|
|
39
|
+
net-hippie (0.3.2)
|
|
40
|
+
nokogiri (1.11.1-x86_64-linux)
|
|
41
|
+
racc (~> 1.4)
|
|
42
|
+
parallel (1.20.1)
|
|
43
|
+
parser (3.0.0.0)
|
|
44
|
+
ast (~> 2.4.1)
|
|
45
|
+
public_suffix (4.0.6)
|
|
46
|
+
racc (1.5.2)
|
|
50
47
|
rainbow (3.0.0)
|
|
51
|
-
rake (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
rspec-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
benchmark-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
rspec
|
|
63
|
-
rspec-
|
|
48
|
+
rake (13.0.3)
|
|
49
|
+
regexp_parser (2.0.3)
|
|
50
|
+
rexml (3.2.4)
|
|
51
|
+
rspec (3.10.0)
|
|
52
|
+
rspec-core (~> 3.10.0)
|
|
53
|
+
rspec-expectations (~> 3.10.0)
|
|
54
|
+
rspec-mocks (~> 3.10.0)
|
|
55
|
+
rspec-benchmark (0.6.0)
|
|
56
|
+
benchmark-malloc (~> 0.2)
|
|
57
|
+
benchmark-perf (~> 0.6)
|
|
58
|
+
benchmark-trend (~> 0.4)
|
|
59
|
+
rspec (>= 3.0)
|
|
60
|
+
rspec-core (3.10.1)
|
|
61
|
+
rspec-support (~> 3.10.0)
|
|
62
|
+
rspec-expectations (3.10.1)
|
|
64
63
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
65
|
-
rspec-support (~> 3.
|
|
66
|
-
rspec-mocks (3.
|
|
64
|
+
rspec-support (~> 3.10.0)
|
|
65
|
+
rspec-mocks (3.10.2)
|
|
67
66
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
68
|
-
rspec-support (~> 3.
|
|
69
|
-
rspec-support (3.
|
|
70
|
-
rubocop (0.
|
|
71
|
-
jaro_winkler (~> 1.5.1)
|
|
67
|
+
rspec-support (~> 3.10.0)
|
|
68
|
+
rspec-support (3.10.2)
|
|
69
|
+
rubocop (0.93.1)
|
|
72
70
|
parallel (~> 1.10)
|
|
73
|
-
parser (>= 2.
|
|
74
|
-
psych (>= 3.1.0)
|
|
71
|
+
parser (>= 2.7.1.5)
|
|
75
72
|
rainbow (>= 2.2.2, < 4.0)
|
|
73
|
+
regexp_parser (>= 1.8)
|
|
74
|
+
rexml
|
|
75
|
+
rubocop-ast (>= 0.6.0)
|
|
76
76
|
ruby-progressbar (~> 1.7)
|
|
77
|
-
unicode-display_width (>= 1.4.0, <
|
|
78
|
-
rubocop-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
|
78
|
+
rubocop-ast (1.4.1)
|
|
79
|
+
parser (>= 2.7.1.5)
|
|
80
|
+
rubocop-rspec (1.44.1)
|
|
81
|
+
rubocop (~> 0.87)
|
|
82
|
+
rubocop-ast (>= 0.7.1)
|
|
83
|
+
ruby-prof (1.4.2)
|
|
84
|
+
ruby-progressbar (1.11.0)
|
|
85
|
+
simplecov (0.21.2)
|
|
84
86
|
docile (~> 1.1)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
simplecov-html (0.
|
|
88
|
-
|
|
87
|
+
simplecov-html (~> 0.11)
|
|
88
|
+
simplecov_json_formatter (~> 0.1)
|
|
89
|
+
simplecov-html (0.12.3)
|
|
90
|
+
simplecov_json_formatter (0.1.2)
|
|
91
|
+
thor (1.1.0)
|
|
89
92
|
thread_safe (0.3.6)
|
|
90
|
-
tilt (2.0.
|
|
91
|
-
tzinfo (1.2.
|
|
93
|
+
tilt (2.0.10)
|
|
94
|
+
tzinfo (1.2.9)
|
|
92
95
|
thread_safe (~> 0.1)
|
|
93
|
-
unicode-display_width (1.
|
|
94
|
-
webmock (3.
|
|
96
|
+
unicode-display_width (1.7.0)
|
|
97
|
+
webmock (3.11.2)
|
|
95
98
|
addressable (>= 2.3.6)
|
|
96
99
|
crack (>= 0.3.2)
|
|
97
|
-
hashdiff
|
|
98
|
-
xml-kit (0.
|
|
100
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
|
101
|
+
xml-kit (0.5.0)
|
|
99
102
|
activemodel (>= 4.2.0)
|
|
100
103
|
builder (~> 3.2)
|
|
101
|
-
nokogiri (
|
|
104
|
+
nokogiri (~> 1.10)
|
|
102
105
|
tilt (>= 1.4.1)
|
|
103
106
|
xmldsig (~> 0.6)
|
|
104
107
|
xmldsig (0.6.6)
|
|
@@ -111,7 +114,7 @@ DEPENDENCIES
|
|
|
111
114
|
bundler (~> 2.0)
|
|
112
115
|
bundler-audit (~> 0.6)
|
|
113
116
|
ffaker (~> 2.7)
|
|
114
|
-
rake (~>
|
|
117
|
+
rake (~> 13.0)
|
|
115
118
|
rspec (~> 3.0)
|
|
116
119
|
rspec-benchmark (~> 0.3)
|
|
117
120
|
rubocop (~> 0.52)
|
|
@@ -122,4 +125,4 @@ DEPENDENCIES
|
|
|
122
125
|
webmock (~> 3.1)
|
|
123
126
|
|
|
124
127
|
BUNDLED WITH
|
|
125
|
-
2.
|
|
128
|
+
2.1.4
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-

|
|
2
2
|
|
|
3
3
|
*Logo courtesy of [@speasley](https://github.com/speasley)*
|
|
4
4
|
|
|
5
|
-
[](https://travis-ci.org/saml-kit/saml-kit)
|
|
6
|
-
[](https://codeclimate.com/github/saml-kit/saml-kit)
|
|
7
5
|
[](https://rubygems.org/gems/saml-kit)
|
|
8
|
-
[](https://hakiri.io/github/saml-kit/saml-kit/master)
|
|
9
|
-
[](https://codeclimate.com/github/saml-kit/saml-kit/test_coverage)
|
|
10
6
|
|
|
11
7
|
Saml::Kit is a library with the purpose of creating and consuming SAML
|
|
12
8
|
documents. It supports the HTTP Post and HTTP Redirect bindings. It can
|
|
13
9
|
create Service Provider Metadata, Identity Provider Metadata,
|
|
14
|
-
AuthnRequest, Response, LogoutRequest, LogoutResponse documents.
|
|
10
|
+
AuthnRequest, Response, LogoutRequest, LogoutResponse documents.
|
|
15
11
|
It also supports generating signed and encrypted assertions.
|
|
16
12
|
|
|
17
13
|
## Installation
|
|
@@ -249,13 +245,13 @@ puts [url, saml_params].inspect
|
|
|
249
245
|
|
|
250
246
|
## Development
|
|
251
247
|
|
|
252
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `
|
|
248
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
253
249
|
|
|
254
250
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
255
251
|
|
|
256
252
|
## Contributing
|
|
257
253
|
|
|
258
|
-
Bug reports and pull requests are welcome on Github at https://github.com/
|
|
254
|
+
Bug reports and pull requests are welcome on Github at https://github.com/xlgmokha/saml-kit.
|
|
259
255
|
|
|
260
256
|
## License
|
|
261
257
|
|
data/Rakefile
CHANGED
data/lib/saml/kit/assertion.rb
CHANGED
|
@@ -114,13 +114,13 @@ module Saml
|
|
|
114
114
|
def must_match_issuer
|
|
115
115
|
return if audiences.empty? || audiences.include?(configuration.entity_id)
|
|
116
116
|
|
|
117
|
-
errors
|
|
117
|
+
errors.add(:audience, error_message(:must_match_issuer))
|
|
118
118
|
end
|
|
119
119
|
|
|
120
120
|
def must_be_active_session
|
|
121
121
|
return if active?
|
|
122
122
|
|
|
123
|
-
errors
|
|
123
|
+
errors.add(:base, error_message(:expired))
|
|
124
124
|
end
|
|
125
125
|
|
|
126
126
|
def must_have_valid_signature
|
|
@@ -54,7 +54,7 @@ module Saml
|
|
|
54
54
|
|
|
55
55
|
signature.valid?
|
|
56
56
|
signature.errors.each do |attribute, error|
|
|
57
|
-
errors
|
|
57
|
+
errors.add(attribute, error)
|
|
58
58
|
end
|
|
59
59
|
end
|
|
60
60
|
|
|
@@ -62,14 +62,14 @@ module Saml
|
|
|
62
62
|
return unless expected_type?
|
|
63
63
|
return if provider.present?
|
|
64
64
|
|
|
65
|
-
errors
|
|
65
|
+
errors.add(:provider, error_message(:unregistered))
|
|
66
66
|
end
|
|
67
67
|
|
|
68
68
|
def must_be_trusted
|
|
69
69
|
return if trusted?
|
|
70
70
|
return if provider.present? && !signed?
|
|
71
71
|
|
|
72
|
-
errors
|
|
72
|
+
errors.add(:fingerprint, error_message(:invalid_fingerprint))
|
|
73
73
|
end
|
|
74
74
|
end
|
|
75
75
|
end
|
data/lib/saml/kit/document.rb
CHANGED
|
@@ -101,7 +101,7 @@ module Saml
|
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
def must_be_expected_type
|
|
104
|
-
errors
|
|
104
|
+
errors.add(:base, error_message(:invalid)) unless expected_type?
|
|
105
105
|
end
|
|
106
106
|
|
|
107
107
|
def expected_type?
|
|
@@ -112,7 +112,7 @@ module Saml
|
|
|
112
112
|
return unless expected_type?
|
|
113
113
|
return if version == '2.0'
|
|
114
114
|
|
|
115
|
-
errors
|
|
115
|
+
errors.add(:version, error_message(:invalid_version))
|
|
116
116
|
end
|
|
117
117
|
end
|
|
118
118
|
end
|
|
@@ -7,7 +7,7 @@ module Saml
|
|
|
7
7
|
# {include:file:spec/saml/kit/invalid_document_spec.rb}
|
|
8
8
|
class InvalidDocument < Document
|
|
9
9
|
validate do |model|
|
|
10
|
-
model.errors
|
|
10
|
+
model.errors.add(:base, model.error_message(:invalid))
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def initialize(xml, *)
|
data/lib/saml/kit/metadata.rb
CHANGED
|
@@ -182,7 +182,7 @@ module Saml
|
|
|
182
182
|
end
|
|
183
183
|
|
|
184
184
|
def must_contain_descriptor
|
|
185
|
-
errors
|
|
185
|
+
errors.add(:base, error_message(:invalid)) unless metadata
|
|
186
186
|
end
|
|
187
187
|
|
|
188
188
|
def must_match_xsd
|
|
@@ -193,7 +193,7 @@ module Saml
|
|
|
193
193
|
return if !signature.present? || signature.valid?
|
|
194
194
|
|
|
195
195
|
signature.errors.each do |attribute, error|
|
|
196
|
-
errors
|
|
196
|
+
errors.add(attribute, error)
|
|
197
197
|
end
|
|
198
198
|
end
|
|
199
199
|
end
|
data/lib/saml/kit/response.rb
CHANGED
|
@@ -45,14 +45,14 @@ module Saml
|
|
|
45
45
|
assertion.valid?
|
|
46
46
|
assertion.errors.each do |attribute, error|
|
|
47
47
|
attribute = :assertion if attribute == :base
|
|
48
|
-
errors
|
|
48
|
+
errors.add(attribute, error)
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
def must_contain_single_assertion
|
|
53
53
|
return if assertion_nodes.count <= 1
|
|
54
54
|
|
|
55
|
-
errors
|
|
55
|
+
errors.add(:base, error_message(:must_contain_single_assertion))
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
def assertion_nodes
|
data/lib/saml/kit/version.rb
CHANGED
data/saml-kit.gemspec
CHANGED
|
@@ -12,9 +12,9 @@ Gem::Specification.new do |spec|
|
|
|
12
12
|
|
|
13
13
|
spec.summary = 'A simple toolkit for working with SAML.'
|
|
14
14
|
spec.description = 'A simple toolkit for working with SAML.'
|
|
15
|
-
spec.homepage = 'https://github.com/
|
|
15
|
+
spec.homepage = 'https://github.com/xlgmokha/saml-kit'
|
|
16
16
|
spec.license = 'MIT'
|
|
17
|
-
spec.required_ruby_version = '~> 2.
|
|
17
|
+
spec.required_ruby_version = '~> 2.5'
|
|
18
18
|
|
|
19
19
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
20
20
|
(
|
|
@@ -28,13 +28,13 @@ Gem::Specification.new do |spec|
|
|
|
28
28
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
29
29
|
spec.require_paths = ['lib']
|
|
30
30
|
|
|
31
|
-
spec.add_dependency 'activemodel', '
|
|
31
|
+
spec.add_dependency 'activemodel', '~> 5.1'
|
|
32
32
|
spec.add_dependency 'net-hippie', '~> 0.1'
|
|
33
|
-
spec.add_dependency 'xml-kit', '
|
|
33
|
+
spec.add_dependency 'xml-kit', '~> 0.4'
|
|
34
34
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
|
35
35
|
spec.add_development_dependency 'bundler-audit', '~> 0.6'
|
|
36
36
|
spec.add_development_dependency 'ffaker', '~> 2.7'
|
|
37
|
-
spec.add_development_dependency 'rake', '~>
|
|
37
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
|
38
38
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
|
39
39
|
spec.add_development_dependency 'rspec-benchmark', '~> 0.3'
|
|
40
40
|
spec.add_development_dependency 'rubocop', '~> 0.52'
|
metadata
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: saml-kit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- mo khan
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-02-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activemodel
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
19
|
+
version: '5.1'
|
|
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
|
-
version:
|
|
26
|
+
version: '5.1'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: net-hippie
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -42,22 +42,16 @@ dependencies:
|
|
|
42
42
|
name: xml-kit
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- - "
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: 0.3.0
|
|
48
|
-
- - "<"
|
|
45
|
+
- - "~>"
|
|
49
46
|
- !ruby/object:Gem::Version
|
|
50
|
-
version:
|
|
47
|
+
version: '0.4'
|
|
51
48
|
type: :runtime
|
|
52
49
|
prerelease: false
|
|
53
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
54
51
|
requirements:
|
|
55
|
-
- - "
|
|
56
|
-
- !ruby/object:Gem::Version
|
|
57
|
-
version: 0.3.0
|
|
58
|
-
- - "<"
|
|
52
|
+
- - "~>"
|
|
59
53
|
- !ruby/object:Gem::Version
|
|
60
|
-
version:
|
|
54
|
+
version: '0.4'
|
|
61
55
|
- !ruby/object:Gem::Dependency
|
|
62
56
|
name: bundler
|
|
63
57
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -106,14 +100,14 @@ dependencies:
|
|
|
106
100
|
requirements:
|
|
107
101
|
- - "~>"
|
|
108
102
|
- !ruby/object:Gem::Version
|
|
109
|
-
version: '
|
|
103
|
+
version: '13.0'
|
|
110
104
|
type: :development
|
|
111
105
|
prerelease: false
|
|
112
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
113
107
|
requirements:
|
|
114
108
|
- - "~>"
|
|
115
109
|
- !ruby/object:Gem::Version
|
|
116
|
-
version: '
|
|
110
|
+
version: '13.0'
|
|
117
111
|
- !ruby/object:Gem::Dependency
|
|
118
112
|
name: rspec
|
|
119
113
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -323,7 +317,7 @@ files:
|
|
|
323
317
|
- spec/examples/response_spec.rb
|
|
324
318
|
- spec/examples/saml-kit.gif
|
|
325
319
|
- spec/examples/service_provider_metadata_spec.rb
|
|
326
|
-
homepage: https://github.com/
|
|
320
|
+
homepage: https://github.com/xlgmokha/saml-kit
|
|
327
321
|
licenses:
|
|
328
322
|
- MIT
|
|
329
323
|
metadata:
|
|
@@ -336,14 +330,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
336
330
|
requirements:
|
|
337
331
|
- - "~>"
|
|
338
332
|
- !ruby/object:Gem::Version
|
|
339
|
-
version: '2.
|
|
333
|
+
version: '2.5'
|
|
340
334
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
341
335
|
requirements:
|
|
342
336
|
- - ">="
|
|
343
337
|
- !ruby/object:Gem::Version
|
|
344
338
|
version: '0'
|
|
345
339
|
requirements: []
|
|
346
|
-
rubygems_version: 3.
|
|
340
|
+
rubygems_version: 3.1.4
|
|
347
341
|
signing_key:
|
|
348
342
|
specification_version: 4
|
|
349
343
|
summary: A simple toolkit for working with SAML.
|