From 272251f0e01cee9cf403bf30c7f2938d28c152f8 Mon Sep 17 00:00:00 2001 From: Mahmut Gundogdu Date: Thu, 8 Dec 2022 16:45:23 +0300 Subject: [PATCH 1/3] Update RN doc --- docs/en/Getting-Started-React-Native.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/en/Getting-Started-React-Native.md b/docs/en/Getting-Started-React-Native.md index 7bd9495e38..7c882525ca 100644 --- a/docs/en/Getting-Started-React-Native.md +++ b/docs/en/Getting-Started-React-Native.md @@ -74,6 +74,20 @@ A React Native application running on an Android emulator or a physical phone ** Run the backend application as described in the [getting started document](Getting-Started.md). +> You should turn off "Https Restriction" if you're using OpenIddict as a central identity management solution. Because the IOS Simulator doesn't support self-signed certificates and OpenIddict is set to only work with HTTPS by default. +## How to disable Https-only settings of OpenIddict + + Go to MyProjectNameHttpApiHostModule.cs under the host project. Add these codes under `PreConfigureServices` function. + +```csharp +#ifDEBUG +PreConfigure(options => { +options.UseAspNetCore() +.DisableTransportSecurityRequirement(); +}); +#endif +``` + ## How to Configure & Run the React Native Application From d8f630389c6c52eb9785da3dd02fb894a62374fd Mon Sep 17 00:00:00 2001 From: Mahmut Gundogdu Date: Thu, 8 Dec 2022 16:47:44 +0300 Subject: [PATCH 2/3] Update Getting-Started-React-Native.md --- docs/en/Getting-Started-React-Native.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/en/Getting-Started-React-Native.md b/docs/en/Getting-Started-React-Native.md index 7c882525ca..be2e3004e2 100644 --- a/docs/en/Getting-Started-React-Native.md +++ b/docs/en/Getting-Started-React-Native.md @@ -80,11 +80,11 @@ Run the backend application as described in the [getting started document](Getti Go to MyProjectNameHttpApiHostModule.cs under the host project. Add these codes under `PreConfigureServices` function. ```csharp -#ifDEBUG -PreConfigure(options => { -options.UseAspNetCore() -.DisableTransportSecurityRequirement(); -}); +#if DEBUG + PreConfigure(options => { + options.UseAspNetCore() + .DisableTransportSecurityRequirement(); + }); #endif ``` From ea0e5c9648f640301371863340a9db6c2d830962 Mon Sep 17 00:00:00 2001 From: Hamza Albreem <94292623+braim23@users.noreply.github.com> Date: Fri, 9 Dec 2022 11:19:05 +0300 Subject: [PATCH 3/3] Getting Started React Native Doc Quick fix --- docs/en/Getting-Started-React-Native.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/en/Getting-Started-React-Native.md b/docs/en/Getting-Started-React-Native.md index be2e3004e2..edd9ff7cb6 100644 --- a/docs/en/Getting-Started-React-Native.md +++ b/docs/en/Getting-Started-React-Native.md @@ -74,10 +74,10 @@ A React Native application running on an Android emulator or a physical phone ** Run the backend application as described in the [getting started document](Getting-Started.md). -> You should turn off "Https Restriction" if you're using OpenIddict as a central identity management solution. Because the IOS Simulator doesn't support self-signed certificates and OpenIddict is set to only work with HTTPS by default. -## How to disable Https-only settings of OpenIddict +> You should turn off the "Https Restriction" if you're using OpenIddict as a central identity management solution. Because the IOS Simulator doesn't support self-signed certificates and OpenIddict is set to only work with HTTPS by default. +## How to disable the Https-only settings of OpenIddict - Go to MyProjectNameHttpApiHostModule.cs under the host project. Add these codes under `PreConfigureServices` function. + Go to MyProjectNameHttpApiHostModule.cs under the host project. Add put these codes under the `PreConfigureServices` function. ```csharp #if DEBUG