From 272251f0e01cee9cf403bf30c7f2938d28c152f8 Mon Sep 17 00:00:00 2001 From: Mahmut Gundogdu Date: Thu, 8 Dec 2022 16:45:23 +0300 Subject: [PATCH] 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