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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc0c61acd404b9d659024b9b6d11afb2ac5fbeb5
4
- data.tar.gz: a1d6cfaa1d4b9b800c5dc9eb31cb2e6e15ec8c47
3
+ metadata.gz: d07f2f86a71a896aa05295310fb591ff562bbaae
4
+ data.tar.gz: a4d4e8dce8731e6dba0ced83af48d2b8043752a2
5
5
  SHA512:
6
- metadata.gz: a9a54851c001e6fb62e2a843670d62e00569800ccaa14289a6626ef153a4ceda795121011e7deaa9661f9015320fdd8bd0d749c5e3293d3300e8feb51249263c
7
- data.tar.gz: 942e3254bd7280f6d6ad83eab64f9e5cd1f183cfa4e287791e178274ea8bfb265162881ec67128a99a92c75ebb965e7931fe0ca987b0fcc5766a3db8617f2ff4
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
- def self.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"
11
+ BasicProvider.new(entity_descriptor, nil, type)
12
+ end
10
13
 
11
- BasicProvider.new(entity_descriptor, nil, type)
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
@@ -1,3 +1,3 @@
1
1
  module Saml
2
- VERSION = "2.3.1"
2
+ VERSION = "2.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libsaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benoist Claassen