libsaml 3.0.8 → 3.0.9
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/lib/saml.rb +3 -0
- data/lib/saml/authn_request.rb +1 -0
- data/lib/saml/elements/idp_entry.rb +16 -0
- data/lib/saml/elements/idp_list.rb +19 -0
- data/lib/saml/elements/scoping.rb +12 -0
- data/lib/saml/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c61c9aa098bf58293c69e0767a47220786a85dfb
|
|
4
|
+
data.tar.gz: a17fefb79591195ebb27ebbd9bf5793fdeecd5f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: be76f49a4e772bbe8092133c4fec19ba4ba9c661ed136f7c03d4fff365296ed1136d3d377e1957e962329ed1aed5522867577e3ec7b8695b8781fb433851f61c
|
|
7
|
+
data.tar.gz: a33e545c51bdf70110f879a4ff7b618cd421ad3515ecdf25f55b8a3d3af322722f44131076ab615cb9d0f94f9a59f78bd480766e8e23c222da3c7811d9e17a83
|
data/lib/saml.rb
CHANGED
|
@@ -197,6 +197,9 @@ module Saml
|
|
|
197
197
|
require 'saml/elements/entities_descriptor'
|
|
198
198
|
require 'saml/elements/attribute_query'
|
|
199
199
|
require 'saml/elements/evidence'
|
|
200
|
+
require 'saml/elements/idp_entry'
|
|
201
|
+
require 'saml/elements/idp_list'
|
|
202
|
+
require 'saml/elements/scoping'
|
|
200
203
|
end
|
|
201
204
|
|
|
202
205
|
module Rails
|
data/lib/saml/authn_request.rb
CHANGED
|
@@ -14,6 +14,7 @@ module Saml
|
|
|
14
14
|
attribute :provider_name, String, :tag => "ProviderName"
|
|
15
15
|
|
|
16
16
|
has_one :requested_authn_context, Saml::Elements::RequestedAuthnContext
|
|
17
|
+
has_one :scoping, Saml::Elements::Scoping
|
|
17
18
|
|
|
18
19
|
validates :force_authn, :inclusion => [true, false, nil]
|
|
19
20
|
validates :assertion_consumer_service_index, :numericality => true, :if => lambda { |val|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module Saml
|
|
2
|
+
module Elements
|
|
3
|
+
class IdpEntry
|
|
4
|
+
include Saml::Base
|
|
5
|
+
|
|
6
|
+
tag 'IDPEntry'
|
|
7
|
+
namespace 'samlp'
|
|
8
|
+
|
|
9
|
+
attribute :provider_id, String, :tag => 'ProviderID'
|
|
10
|
+
attribute :name, String, :tag => 'Name'
|
|
11
|
+
attribute :loc, String, :tag => 'Loc'
|
|
12
|
+
|
|
13
|
+
validates :provider_id, :presence => true
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module Saml
|
|
2
|
+
module Elements
|
|
3
|
+
class IdpList
|
|
4
|
+
include Saml::Base
|
|
5
|
+
|
|
6
|
+
tag 'IDPList'
|
|
7
|
+
namespace 'samlp'
|
|
8
|
+
|
|
9
|
+
has_many :idp_entries, Saml::Elements::IdpEntry
|
|
10
|
+
|
|
11
|
+
validates :idp_entries, :presence => true
|
|
12
|
+
|
|
13
|
+
def initialize(*args)
|
|
14
|
+
super(*args)
|
|
15
|
+
self.idp_entries ||= []
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
data/lib/saml/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: libsaml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Benoist Claassen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-09-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -188,6 +188,8 @@ files:
|
|
|
188
188
|
- lib/saml/elements/entity_attributes.rb
|
|
189
189
|
- lib/saml/elements/entity_descriptor.rb
|
|
190
190
|
- lib/saml/elements/evidence.rb
|
|
191
|
+
- lib/saml/elements/idp_entry.rb
|
|
192
|
+
- lib/saml/elements/idp_list.rb
|
|
191
193
|
- lib/saml/elements/idp_sso_descriptor.rb
|
|
192
194
|
- lib/saml/elements/key_descriptor.rb
|
|
193
195
|
- lib/saml/elements/key_info.rb
|
|
@@ -203,6 +205,7 @@ files:
|
|
|
203
205
|
- lib/saml/elements/requested_attribute.rb
|
|
204
206
|
- lib/saml/elements/requested_authn_context.rb
|
|
205
207
|
- lib/saml/elements/samlp_extensions.rb
|
|
208
|
+
- lib/saml/elements/scoping.rb
|
|
206
209
|
- lib/saml/elements/service_description.rb
|
|
207
210
|
- lib/saml/elements/service_name.rb
|
|
208
211
|
- lib/saml/elements/session_index.rb
|