From 9ede71fa12741ed2f4d54e9c42acea3768c825d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Sat, 22 Oct 2016 11:00:21 +0200 Subject: [PATCH] Introduce OpenIddictBuilder.DisableConfigurationEndpoint() and DisableCryptographyEndpoint() --- src/OpenIddict.Core/OpenIddictBuilder.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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. ///