Internal Authentication

Internal Authentication provides the authentication mechanism based on its own user storage. Thus you must install the Document Storage or define own storage for the users.

1. Install InfinniPlatform.Auth package:

dotnet add package InfinniPlatform.Auth -s https://www.myget.org/F/infinniplatform/

2. Call AddAuthInternal() in ConfigureServices():

 using System;

 using InfinniPlatform.AspNetCore;

 using Microsoft.Extensions.DependencyInjection;

 public class Startup
 {
     public IServiceProvider ConfigureServices(IServiceCollection services)
     {
         services.AddAuthInternal();

         // ...

         return services.BuildProvider();
     }

     // ...
 }