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
Nameto e.g.HMISand theSourcetohttps://baget.ahbsdev.com/v3/index.json. - After that, click
OKto 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
HMISpackage source from the dropdown. - Search for
HMIS.Security.Identity. - Click
Installto 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.
.NET 9.0
- HMIS.Base.Models (>= 1.0.1)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 9.0.9)
- Microsoft.EntityFrameworkCore.SqlServer (>= 9.0.9)
- Newtonsoft.Json (>= 13.0.3)