diff --git a/src/OpenIddict.Core/OpenIddictBuilder.cs b/src/OpenIddict.Core/OpenIddictBuilder.cs
index d7c065c3..586a64e5 100644
--- a/src/OpenIddict.Core/OpenIddictBuilder.cs
+++ b/src/OpenIddict.Core/OpenIddictBuilder.cs
@@ -458,6 +458,22 @@ namespace Microsoft.AspNetCore.Builder {
OpenIdConnectConstants.GrantTypes.RefreshToken));
}
+ ///
+ /// Disables the configuration endpoint.
+ ///
+ /// The .
+ public virtual OpenIddictBuilder DisableConfigurationEndpoint() {
+ return Configure(options => options.ConfigurationEndpointPath = PathString.Empty);
+ }
+
+ ///
+ /// Disables the cryptography endpoint.
+ ///
+ /// The .
+ public virtual OpenIddictBuilder DisableCryptographyEndpoint() {
+ return Configure(options => options.CryptographyEndpointPath = PathString.Empty);
+ }
+
///
/// Disables the HTTPS requirement during development.
///