SimpleIdServer icon indicating copy to clipboard operation
SimpleIdServer copied to clipboard

Build fails for 'dotnet new scim' template due to missing SimpleIdServer.Scim.ApiKeyAuth package

Open dimOk00 opened this issue 7 months ago • 2 comments

Description

When creating a new project using the dotnet new scim template, the resulting project fails to build because it is missing a required NuGet package: SimpleIdServer.Scim.ApiKeyAuth


Steps to Reproduce

  1. Install the SimpleIdServer.Scim templates if you haven't already:
    dotnet new scim -n ScimEF --connectionString "Data Source=.;Initial Catalog=SCIM;Integrated Security=True;TrustServerCertificate=True" -t "SQLSERVER"
    
  2. Attempt to build the project:
    dotnet build
    

Expected Behavior

The project should build successfully without any errors, as it's generated from a template. All necessary NuGet packages should be included in the project file by default.


Actual Behavior

The build process fails with errors indicating that the SimpleIdServer.Scim.ApiKeyAuth namespace and its types cannot be found. This is because the NuGet package is not referenced in the .csproj file.

dimOk00 avatar Jul 23 '25 09:07 dimOk00

Hello @dimOk00,

You're right — the .NET template for the SimpleIdServer.Scim.Startup project was invalid. This issue has been addressed in the release/v6.0.4 branch with the following changes:

  1. Added the missing NuGet packages:
<PackageReference Include="SimpleIdServer.Scim.ApiKeyAuth" Version="6.0.*-*" />
<PackageReference Include="SimpleIdServer.Scim.MassTransit" Version="6.0.*-*" />
  1. Included the missing using directive using SimpleIdServer.Scim; in the ScimServerSetup.cs file.

KR,

SID

simpleidserver avatar Jul 23 '25 12:07 simpleidserver

Thanks for your effort!

dimOk00 avatar Jul 23 '25 12:07 dimOk00