Browse Source

Merge pull request #14581 from abpframework/issue/12511

Implement OpenIddict changes for React Native to DOCS
pull/14602/head
Mahmut Gundogdu 3 years ago
committed by GitHub
parent
commit
c802654781
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 21
      docs/en/Getting-Started-React-Native.md

21
docs/en/Getting-Started-React-Native.md

@ -53,6 +53,27 @@ Please do the following:
> React Native application does not trust the auto-generated .NET HTTPS certificate. You should use **HTTP** during the development.
> When you are using OpenIddict, You should remove 'clientSecret' on Environment.js (if exists) and disable "HTTPS-only" settings. (Openiddict has default since Version 6.0)
### How to disable Https-only in Openiddict.
You should add this code on `MyProjectName`HttpApiHostModule.
```csharp
public override void PreConfigureServices(ServiceConfigurationContext context)
{
#if DEBUG
PreConfigure<OpenIddictServerBuilder>(options =>
{
options
.UseAspNetCore()
.DisableTransportSecurityRequirement();
});
#endif
//....
}
```
A React Native application running on an Android emulator or a physical phone **can not connect to the backend** on `localhost`. To fix this problem, it is necessary to run the backend application on your **local IP address**.
{{ if Tiered == "No"}}

Loading…
Cancel
Save