private void LoadMetadata() { // So far only support for metadata at well known location. var metadata = MetadataLoader.LoadIdp(new Uri(EntityId.Id)); LoadMetadata(metadata); }
private void DoLoadMetadata() { lock (metadataLoadLock) { try { var metadata = MetadataLoader.LoadIdp(MetadataUrl); ReadMetadata(metadata); } catch (WebException) { MetadataValidUntil = DateTime.MinValue; throw; } } }
private void DoLoadMetadata() { lock (metadataLoadLock) { try { var metadata = MetadataLoader.LoadIdp( MetadataLocation, spOptions.Compatibility.UnpackEntitiesDescriptorInIdentityProviderMetadata); ReadMetadata(metadata); } catch (WebException) { MetadataValidUntil = DateTime.MinValue; throw; } } }
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; } } } }