コード例 #1
0
        private void LoadMetadata()
        {
            // So far only support for metadata at well known location.
            var metadata = MetadataLoader.LoadIdp(new Uri(EntityId.Id));

            LoadMetadata(metadata);
        }
コード例 #2
0
        private void DoLoadMetadata()
        {
            lock (metadataLoadLock)
            {
                try
                {
                    var metadata = MetadataLoader.LoadIdp(MetadataUrl);

                    ReadMetadata(metadata);
                }
                catch (WebException)
                {
                    MetadataValidUntil = DateTime.MinValue;
                    throw;
                }
            }
        }
コード例 #3
0
        private void DoLoadMetadata()
        {
            lock (metadataLoadLock)
            {
                try
                {
                    var metadata = MetadataLoader.LoadIdp(
                        MetadataLocation,
                        spOptions.Compatibility.UnpackEntitiesDescriptorInIdentityProviderMetadata);

                    ReadMetadata(metadata);
                }
                catch (WebException)
                {
                    MetadataValidUntil = DateTime.MinValue;
                    throw;
                }
            }
        }
コード例 #4
0
        private void DoLoadMetadata()
        {
            if (LoadMetadata)
            {
                lock (metadataLoadLock)
                {
                    try
                    {
                        spOptions.Logger?.WriteInformation("Loading metadata for idp " + EntityId.Id);
                        var metadata = MetadataLoader.LoadIdp(
                            MetadataLocation,
                            spOptions.Compatibility.UnpackEntitiesDescriptorInIdentityProviderMetadata);

                        ReadMetadata(metadata);
                    }
                    catch (WebException ex)
                    {
                        spOptions.Logger?.WriteError("Failed to load metadata for idp " + EntityId.Id, ex);
                        MetadataValidUntil = DateTime.MinValue;
                        throw;
                    }
                }
            }
        }