|
|
@ -1137,11 +1137,6 @@ namespace Microsoft.Extensions.DependencyInjection |
|
|
throw new ArgumentException("One of the specified addresses is not valid.", nameof(addresses)); |
|
|
throw new ArgumentException("One of the specified addresses is not valid.", nameof(addresses)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (addresses.Any(address => !address.IsAbsoluteUri && !address.OriginalString.StartsWith("/", StringComparison.OrdinalIgnoreCase))) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new ArgumentException("Relative URLs must start with a '/'.", nameof(addresses)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return Configure(options => |
|
|
return Configure(options => |
|
|
{ |
|
|
{ |
|
|
options.AuthorizationEndpointUris.Clear(); |
|
|
options.AuthorizationEndpointUris.Clear(); |
|
|
@ -1189,11 +1184,6 @@ namespace Microsoft.Extensions.DependencyInjection |
|
|
throw new ArgumentException("One of the specified addresses is not valid.", nameof(addresses)); |
|
|
throw new ArgumentException("One of the specified addresses is not valid.", nameof(addresses)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (addresses.Any(address => !address.IsAbsoluteUri && !address.OriginalString.StartsWith("/", StringComparison.OrdinalIgnoreCase))) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new ArgumentException("Relative URLs must start with a '/'.", nameof(addresses)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return Configure(options => |
|
|
return Configure(options => |
|
|
{ |
|
|
{ |
|
|
options.ConfigurationEndpointUris.Clear(); |
|
|
options.ConfigurationEndpointUris.Clear(); |
|
|
@ -1241,11 +1231,6 @@ namespace Microsoft.Extensions.DependencyInjection |
|
|
throw new ArgumentException("One of the specified addresses is not valid.", nameof(addresses)); |
|
|
throw new ArgumentException("One of the specified addresses is not valid.", nameof(addresses)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (addresses.Any(address => !address.IsAbsoluteUri && !address.OriginalString.StartsWith("/", StringComparison.OrdinalIgnoreCase))) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new ArgumentException("Relative URLs must start with a '/'.", nameof(addresses)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return Configure(options => |
|
|
return Configure(options => |
|
|
{ |
|
|
{ |
|
|
options.CryptographyEndpointUris.Clear(); |
|
|
options.CryptographyEndpointUris.Clear(); |
|
|
@ -1293,11 +1278,6 @@ namespace Microsoft.Extensions.DependencyInjection |
|
|
throw new ArgumentException("One of the specified addresses is not valid.", nameof(addresses)); |
|
|
throw new ArgumentException("One of the specified addresses is not valid.", nameof(addresses)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (addresses.Any(address => !address.IsAbsoluteUri && !address.OriginalString.StartsWith("/", StringComparison.OrdinalIgnoreCase))) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new ArgumentException("Relative URLs must start with a '/'.", nameof(addresses)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return Configure(options => |
|
|
return Configure(options => |
|
|
{ |
|
|
{ |
|
|
options.DeviceEndpointUris.Clear(); |
|
|
options.DeviceEndpointUris.Clear(); |
|
|
@ -1345,11 +1325,6 @@ namespace Microsoft.Extensions.DependencyInjection |
|
|
throw new ArgumentException("One of the specified addresses is not valid.", nameof(addresses)); |
|
|
throw new ArgumentException("One of the specified addresses is not valid.", nameof(addresses)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (addresses.Any(address => !address.IsAbsoluteUri && !address.OriginalString.StartsWith("/", StringComparison.OrdinalIgnoreCase))) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new ArgumentException("Relative URLs must start with a '/'.", nameof(addresses)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return Configure(options => |
|
|
return Configure(options => |
|
|
{ |
|
|
{ |
|
|
options.IntrospectionEndpointUris.Clear(); |
|
|
options.IntrospectionEndpointUris.Clear(); |
|
|
@ -1397,11 +1372,6 @@ namespace Microsoft.Extensions.DependencyInjection |
|
|
throw new ArgumentException("One of the specified addresses is not valid.", nameof(addresses)); |
|
|
throw new ArgumentException("One of the specified addresses is not valid.", nameof(addresses)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (addresses.Any(address => !address.IsAbsoluteUri && !address.OriginalString.StartsWith("/", StringComparison.OrdinalIgnoreCase))) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new ArgumentException("Relative URLs must start with a '/'.", nameof(addresses)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return Configure(options => |
|
|
return Configure(options => |
|
|
{ |
|
|
{ |
|
|
options.LogoutEndpointUris.Clear(); |
|
|
options.LogoutEndpointUris.Clear(); |
|
|
@ -1449,11 +1419,6 @@ namespace Microsoft.Extensions.DependencyInjection |
|
|
throw new ArgumentException("One of the specified addresses is not valid.", nameof(addresses)); |
|
|
throw new ArgumentException("One of the specified addresses is not valid.", nameof(addresses)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (addresses.Any(address => !address.IsAbsoluteUri && !address.OriginalString.StartsWith("/", StringComparison.OrdinalIgnoreCase))) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new ArgumentException("Relative URLs must start with a '/'.", nameof(addresses)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return Configure(options => |
|
|
return Configure(options => |
|
|
{ |
|
|
{ |
|
|
options.RevocationEndpointUris.Clear(); |
|
|
options.RevocationEndpointUris.Clear(); |
|
|
@ -1501,11 +1466,6 @@ namespace Microsoft.Extensions.DependencyInjection |
|
|
throw new ArgumentException("One of the specified addresses is not valid.", nameof(addresses)); |
|
|
throw new ArgumentException("One of the specified addresses is not valid.", nameof(addresses)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (addresses.Any(address => !address.IsAbsoluteUri && !address.OriginalString.StartsWith("/", StringComparison.OrdinalIgnoreCase))) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new ArgumentException("Relative URLs must start with a '/'.", nameof(addresses)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return Configure(options => |
|
|
return Configure(options => |
|
|
{ |
|
|
{ |
|
|
options.TokenEndpointUris.Clear(); |
|
|
options.TokenEndpointUris.Clear(); |
|
|
@ -1553,11 +1513,6 @@ namespace Microsoft.Extensions.DependencyInjection |
|
|
throw new ArgumentException("One of the specified addresses is not valid.", nameof(addresses)); |
|
|
throw new ArgumentException("One of the specified addresses is not valid.", nameof(addresses)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (addresses.Any(address => !address.IsAbsoluteUri && !address.OriginalString.StartsWith("/", StringComparison.OrdinalIgnoreCase))) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new ArgumentException("Relative URLs must start with a '/'.", nameof(addresses)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return Configure(options => |
|
|
return Configure(options => |
|
|
{ |
|
|
{ |
|
|
options.UserinfoEndpointUris.Clear(); |
|
|
options.UserinfoEndpointUris.Clear(); |
|
|
@ -1605,11 +1560,6 @@ namespace Microsoft.Extensions.DependencyInjection |
|
|
throw new ArgumentException("One of the specified addresses is not valid.", nameof(addresses)); |
|
|
throw new ArgumentException("One of the specified addresses is not valid.", nameof(addresses)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (addresses.Any(address => !address.IsAbsoluteUri && !address.OriginalString.StartsWith("/", StringComparison.OrdinalIgnoreCase))) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new ArgumentException("Relative URLs must start with a '/'.", nameof(addresses)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return Configure(options => |
|
|
return Configure(options => |
|
|
{ |
|
|
{ |
|
|
options.VerificationEndpointUris.Clear(); |
|
|
options.VerificationEndpointUris.Clear(); |
|
|
|