HMIS.Security.Identity 1.0.3

HMIS.Security.Identity

A Package for Service Locator for the HMIS sln that will be used in all the Modules.


Installation

Add Internal NuGet Package Source with the next steps:

  • Open Visual Studio.
  • Go to Tools > Options.
  • Select NuGet Package Manager > Package Sources.
  • Click the + button to add a new package source.
  • Set the Name to e.g. HMIS and the Source to https://baget.ahbsdev.com/v3/index.json.
  • After that, click OK to save the changes.
  • Then, you can install the package via the .NET CLI:
dotnet add package HMIS.Security.Identity --source https://baget.ahbsdev.com/v3/index.json

Or via the NuGet Package Manager:

  • Open the NuGet Package Manager in Visual Studio.
  • Package Manager Console:
    Install-Package HMIS.Security.Identity -Source https://baget.ahbsdev.com/v3/index.json
    

Or via the NuGet Package Manager UI:

  • Open the NuGet Package Manager in Visual Studio.
  • Select the HMIS package source from the dropdown.
  • Search for HMIS.Security.Identity.
  • Click Install to add the package to your project.

Program.cs

builder.Services.RegisterSecurity(builder.Configuration);

appsettings.json

 "ConnectionStrings": {"SecurityEntities": "Server=10.24.105.156;Database=HCMS.Main;User Id=semilive;Password=semilive;Persist Security Info=True;MultipleActiveResultSets=True;TrustServerCertificate=True;Application Name=EntityFramework"
 }

 "JwtSettings": {
    "Key": "YQBiAGMAZABlAGYAZwBoAGkAagBrAGwAbQBuAG8AcABxAHIAcwB0AHUAdgB3AHgAeQB6ADAAMQAyADMANAA1AA==",
    "Issuer": "Security.Service",
    "Audience": "http://localhost:81/",
    "TokenLifetimeInMinutes": 3600,

    "ValidateIssuer": true,
    "ValidateAudience": true,
    "ValidateLifetime": true,
    "ValidateIssuerSigningKey": true,

    "ClockSkewMinutes": 0,
    "RequireHttpsMetadata": false,
    "SaveToken": true

  },

  "SecuritySettings": {
    "Log": {
      "Pattern": "%date >> %-5level >> %logger >> %message%newline",
      "MaxFileSize": "100KB",
      "MaxFileBackups": 100,
      "FilePath": "C:\\log\\log.txt" // Uncomment or remove if not used
    }

No packages depend on HMIS.Security.Identity.

Version Downloads Last updated
1.0.3 27 11/18/2025
1.0.2 31 11/09/2025
1.0.1 22 10/29/2025