Ends in:
2 DAYS
4 HRS
48 MIN
33 SEC
Ends in:
2 D
4 H
48 M
33 S
Open Closed

AuthServer with No-UI #8425


User avatar
0
htavukcu created
  • ABP Framework version: v8.3.1
  • UI Type: Mvc
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

We are making extensive changes to the AuthServer interface. We are wondering if we can create a no-ui AuthServer project. We know and implement the UI modification methods you have provided, but it would still be nice to use our own built application on the UI side and use authserver on the backend side. Thanks for your help.


10 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The AuthServer built-in the account pro module for login(Authentication) and oauth2, etc.

    That means it has to have UI pages.

    The Auth Server project will not have a No UI option.

  • User Avatar
    0
    htavukcu created

    Thanks for your answer, is there a way to remove the UI dependencies? That is, can we prevent it from installing client packages?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    You can remove the .Web package from auth server, and npm packages from packages.jon

    But the UI won't work after that.

    You can only use the oauth2 flow without UI.

  • User Avatar
    0
    htavukcu created

    Is there a module I need to remove? I think some modules will give an error in this case, for example the libs folder is empty.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi Please share your authserver.csproj file content.

  • User Avatar
    0
    htavukcu created
    <PropertyGroup>
    
    <ItemGroup>
      <PackageReference Include="Aspire.StackExchange.Redis" Version="9.0.0" />
    	<PackageReference Include="AspNetCore.HealthChecks.UI" Version="8.0.2" />
    	<PackageReference Include="AspNetCore.HealthChecks.UI.Client" Version="8.0.1" />
    	<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="8.0.4" />
    	<PackageReference Include="AspNetCore.HealthChecks.UI.InMemory.Storage" Version="8.0.1" />
      <PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
      <PackageReference Include="Serilog.AspNetCore" Version="8.0.0" />
      <PackageReference Include="Serilog.Sinks.Async" Version="1.5.0" />
      <PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="8.0.4" />
      <PackageReference Include="DistributedLock.Redis" Version="1.0.2" />
      <PackageReference Include="Microsoft.AspNetCore.Authentication.Google" Version="8.0.4" />
      <PackageReference Include="Microsoft.AspNetCore.Authentication.MicrosoftAccount" Version="8.0.4" />
      <PackageReference Include="Microsoft.AspNetCore.Authentication.Twitter" Version="8.0.4" />
      <PackageReference Include="Serilog.Sinks.OpenTelemetry" Version="4.1.1" />
    </ItemGroup>
    
    <ItemGroup>
      <PackageReference Include="Volo.Abp.Autofac" Version="8.3.1" />
      <PackageReference Include="Volo.Abp.AspNetCore.Serilog" Version="8.3.1" />
      <PackageReference Include="Volo.Abp.Caching.StackExchangeRedis" Version="8.3.1" />
      <PackageReference Include="Volo.Abp.DistributedLocking" Version="8.3.1" />
      <PackageReference Include="Volo.Abp.Account.Pro.Public.Application" Version="8.3.1" />
      <PackageReference Include="Volo.Abp.Account.Pro.Public.HttpApi" Version="8.3.1" />
      <PackageReference Include="Volo.Abp.Account.Pro.Public.Web.OpenIddict" Version="8.3.1" />
      <PackageReference Include="Volo.Abp.Account.Pro.Public.Web.Impersonation" Version="8.3.1" />
      <PackageReference Include="Volo.Saas.Host.Application.Contracts" Version="8.3.1" />
    </ItemGroup>
    
    <ItemGroup>
      <ProjectReference Include="..\..\modules\basic-theme\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic\Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.csproj" />
      <ProjectReference Include="..\ServiceDefaults\Suite.ServiceDefaults.csproj" />
      <ProjectReference Include="..\Suite.EntityFrameworkCore\Suite.EntityFrameworkCore.csproj" />
    </ItemGroup>
    
    <ItemGroup>
      <PackageReference Include="Volo.Abp.Studio.Client.AspNetCore" Version="0.8.3" />
    </ItemGroup>
    
    <ItemGroup>
      <Folder Include="Pages\Account\" />
    </ItemGroup>
    
    
  • User Avatar
    0
    htavukcu created

    and the modules

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The Volo.Abp.Account.Pro.Public.Web.OpenIddict and Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic packages contain the UI pages.

    If you don't need them, you can remove them.

  • User Avatar
    0
    htavukcu created

    This caused other problems so I guess I'll give up :), thanks for your help.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Yes, Keeping them won't affect you. : )

Made with ❤️ on ABP v9.1.0-preview. Updated on December 02, 2024, 12:35