From 6012177843ed3253de12cf71e8c0a4672054600b Mon Sep 17 00:00:00 2001 From: maliming Date: Fri, 2 Aug 2024 13:00:55 +0800 Subject: [PATCH 1/2] Update `openiddict.md`. --- docs/en/modules/openiddict-pro.md | 11 +++++++++++ docs/en/modules/openiddict.md | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/docs/en/modules/openiddict-pro.md b/docs/en/modules/openiddict-pro.md index e2c2715d62..722ac6774b 100644 --- a/docs/en/modules/openiddict-pro.md +++ b/docs/en/modules/openiddict-pro.md @@ -415,6 +415,17 @@ public override void PreConfigureServices(ServiceConfigurationContext context) } ``` +### Disable Transport Security Requirement + +By default, OpenIddict requires the use of HTTPS for all endpoints. This can be disabled if needed. + +```cs +Configure(options => +{ + options.DisableTransportSecurityRequirement = true; +}); +``` + https://documentation.openiddict.com/configuration/token-formats.html#disabling-jwt-access-token-encryption ### Request/Response Process diff --git a/docs/en/modules/openiddict.md b/docs/en/modules/openiddict.md index 0d126b42c0..c1ca27cb22 100644 --- a/docs/en/modules/openiddict.md +++ b/docs/en/modules/openiddict.md @@ -375,6 +375,17 @@ public override void PreConfigureServices(ServiceConfigurationContext context) } ``` +### Disable Transport Security Requirement + +By default, OpenIddict requires the use of HTTPS for all endpoints. This can be disabled if needed. + +```cs +Configure(options => +{ + options.DisableTransportSecurityRequirement = true; +}); +``` + https://documentation.openiddict.com/configuration/token-formats.html#disabling-jwt-access-token-encryption ### Request/Response Process From f05b87b54a2f55538ab1dab2a7d2a315b58752d2 Mon Sep 17 00:00:00 2001 From: Engincan VESKE Date: Fri, 2 Aug 2024 09:10:52 +0300 Subject: [PATCH 2/2] update openiddict.md --- docs/en/modules/openiddict-pro.md | 2 +- docs/en/modules/openiddict.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/modules/openiddict-pro.md b/docs/en/modules/openiddict-pro.md index 722ac6774b..b9102cee6d 100644 --- a/docs/en/modules/openiddict-pro.md +++ b/docs/en/modules/openiddict-pro.md @@ -417,7 +417,7 @@ public override void PreConfigureServices(ServiceConfigurationContext context) ### Disable Transport Security Requirement -By default, OpenIddict requires the use of HTTPS for all endpoints. This can be disabled if needed. +By default, OpenIddict requires the use of HTTPS for all endpoints. You can disable it if it's needed. You just need to configure the `OpenIddictServerAspNetCoreOptions` and set `DisableTransportSecurityRequirement` as **true**: ```cs Configure(options => diff --git a/docs/en/modules/openiddict.md b/docs/en/modules/openiddict.md index c1ca27cb22..80f1a54776 100644 --- a/docs/en/modules/openiddict.md +++ b/docs/en/modules/openiddict.md @@ -377,7 +377,7 @@ public override void PreConfigureServices(ServiceConfigurationContext context) ### Disable Transport Security Requirement -By default, OpenIddict requires the use of HTTPS for all endpoints. This can be disabled if needed. +By default, OpenIddict requires the use of HTTPS for all endpoints. You can disable it if it's needed. You just need to configure the `OpenIddictServerAspNetCoreOptions` and set `DisableTransportSecurityRequirement` as **true**: ```cs Configure(options =>