0
rachlauer created
1 Answer(s)
-
0
To run the AuthServer locally without requiring a certificate, you can disable the HTTPS metadata requirement in your configuration. This allows the server to accept HTTP requests and operate without a certificate for development purposes.
In your
appsettings.json
(AuthServer project), set:"AuthServer": { "Authority": "http://localhost:PORT", "RequireHttpsMetadata": "false" }
In your AuthServer's
ConfigureServices
method, add:if (!Convert.ToBoolean(configuration["AuthServer:RequireHttpsMetadata"])) { Configure<OpenIddictServerAspNetCoreOptions>(options => { options.DisableTransportSecurityRequirement = true; }); }
This configuration disables the HTTPS requirement, allowing you to run AuthServer locally without a certificate.
Sources:
- https://abp.io/docs/latest/solution-templates/layered-web-application/deployment/openiddict-deployment
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.