Open Closed

Run authserver locally without certificates #9471


User avatar
0
rachlauer created

Is it possible to run AuthServer locally without a certificate?


1 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent

    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.

    1. In your appsettings.json (AuthServer project), set:

      "AuthServer": {
        "Authority": "http://localhost:PORT",
        "RequireHttpsMetadata": "false"
      }
      
    2. 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.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on July 14, 2025, 11:57