libsaml 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/saml/provider_stores/url.rb +8 -7
- data/lib/saml/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d07f2f86a71a896aa05295310fb591ff562bbaae
|
4
|
+
data.tar.gz: a4d4e8dce8731e6dba0ced83af48d2b8043752a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a6c196b43cf4b16a3ad733c2db2cd2d23d5cfec50cc52e65cf12459ccc77489ec28d093ea1026b8fe64e1e775411fbaa216faadbf7739189b896baaa65a30b5
|
7
|
+
data.tar.gz: 276c5513bf5b76d23f4886011cdfb910f6d3a6a5c8995769f02c738e4df05dfb7fa0ce4952d8c55a9169679a9d25d1ec34046a3be2242dc148af717d43372fa8
|
@@ -2,16 +2,17 @@ module Saml
|
|
2
2
|
module ProviderStores
|
3
3
|
class Url
|
4
4
|
attr_accessor :providers
|
5
|
+
class << self
|
6
|
+
def find_by_metadata_location(entity_id)
|
7
|
+
metadata = Saml::Util.download_metadata_xml(entity_id)
|
8
|
+
entity_descriptor = Saml::Elements::EntityDescriptor.parse(metadata, single: true)
|
9
|
+
type = entity_descriptor.sp_sso_descriptor.present? ? "service_provider" : "identity_provider"
|
5
10
|
|
6
|
-
|
7
|
-
|
8
|
-
entity_descriptor = Saml::Elements::EntityDescriptor.parse(metadata, single: true)
|
9
|
-
type = entity_descriptor.sp_sso_descriptor.present? ? "service_provider" : "identity_provider"
|
11
|
+
BasicProvider.new(entity_descriptor, nil, type)
|
12
|
+
end
|
10
13
|
|
11
|
-
|
14
|
+
alias_method :find_by_entity_id, :find_by_metadata_location
|
12
15
|
end
|
13
|
-
|
14
|
-
alias_method :find_by_entity_id, :find_by_metadata_location
|
15
16
|
end
|
16
17
|
end
|
17
18
|
end
|
data/lib/saml/version.rb
CHANGED