This commit is contained in:
2026-11-08 17:59:00 +03:30
parent 73a59f9181
commit df3ed7868b
3 changed files with 446 additions and 405 deletions
+10 -1
View File
@@ -6,6 +6,7 @@ using xIds.Providers;
using Newtonsoft.Json; using Newtonsoft.Json;
using xIds.Interfaces; using xIds.Interfaces;
using System.Reflection; using System.Reflection;
using xLoggingService.DI;
using xStorageService.DI; using xStorageService.DI;
using xCommons.Extensions; using xCommons.Extensions;
using xCommons.Configurations; using xCommons.Configurations;
@@ -29,6 +30,7 @@ namespace xIds
public void ConfigureServices(IServiceCollection services) public void ConfigureServices(IServiceCollection services)
{ {
services.AddXLoggingService(Configuration);
// //
// Register Validation Provider and all XCommons Module Services ... // Register Validation Provider and all XCommons Module Services ...
services.AddXCommons(Configuration); services.AddXCommons(Configuration);
@@ -78,7 +80,11 @@ namespace xIds
services.AddSingleton<IXSecurityProvider, XSecurityProvider>(); services.AddSingleton<IXSecurityProvider, XSecurityProvider>();
} }
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILogger<Startup> logger) public void Configure(
IApplicationBuilder app,
IWebHostEnvironment env,
ILogger<Startup> logger
)
{ {
// //
if (env.IsDevelopment()) if (env.IsDevelopment())
@@ -125,3 +131,6 @@ namespace xIds
} }
} }
} }
+431 -390
View File
@@ -1,397 +1,438 @@
{ {
"Version": "0.1", "Version": "0.1",
"XPoweredValue": "SaherElmITCenter", "XPoweredValue": "SaherElmITCenter",
"Name": "xIdentityServer", "Name": "xIdentityServer",
"WelcomeMessage": "Welcome to xSaherElm Project's xIdentityServer", "WelcomeMessage": "Welcome to xSaherElm Project's xIdentityServer",
"AllowedOrigins": [ "AllowedOrigins": [
"https://saherelm.ir", "https://saherelm.ir",
"https://saherelmhub.ir", "https://saherelmhub.ir",
"https://api.saherelm.ir", "https://api.saherelm.ir",
"https://api.saherelmhub.ir" "https://api.saherelmhub.ir"
], ],
"SwaggerConfiguration": { "SwaggerConfiguration": {
"Version": "v1.0", "Version": "v1.0",
"Title": "xSaherElm Identity Server API", "Title": "xSaherElm Identity Server API",
"Description": "Complete API Documentation", "Description": "Complete API Documentation",
"Contact": { "Contact": {
"Name": "Hadi Khazaee Asl", "Name": "Hadi Khazaee Asl",
"Email": "hadi_khazaee_asl@yahoo.com", "Email": "hadi_khazaee_asl@yahoo.com",
"Url": "https://www.saherelm.ir" "Url": "https://www.saherelm.ir"
} }
}, },
"DbProvider": "SQLite", "DbProvider": "SQLite",
"ConnectionStrings": { "ConnectionStrings": {
"IdentityDb": "Filename=./Db/XIdentity.db;Foreign Keys=False", "IdentityDb": "Filename=./Db/XIdentity.db;Foreign Keys=False",
"ConfigurationDb": "Filename=./Db/XConfigurations.db", "ConfigurationDb": "Filename=./Db/XConfigurations.db",
"PersistedGrantDb": "Filename=./Db/XPersistedGrants.db" "PersistedGrantDb": "Filename=./Db/XPersistedGrants.db"
}, },
"DataServiceConfiguration": { "DataServiceConfiguration": {
"PagingConfiguration": { "PagingConfiguration": {
"DefaultPageSize": 20, "DefaultPageSize": 20,
"MaxAvailablePageSize": 400, "MaxAvailablePageSize": 400,
"MinAvailablePageSize": 20 "MinAvailablePageSize": 20
} }
}, },
"Certificates": { "Certificates": {
"IdentityServerSigning": { "IdentityServerSigning": {
"Path": "Certificate/xIds.pfx", "Path": "Certificate/xIds.pfx",
"Secret": "s@1694056" "Secret": "s@1694056"
} }
}, },
"IdentityConfiguration": { "IdentityConfiguration": {
"IdentityIssuer": "SaherElm Identity Server", "IdentityIssuer": "SaherElm Identity Server",
"IdentityAudience": "SaherElmIdentityAPI", "IdentityAudience": "SaherElmIdentityAPI",
"IdentitySecretKey": "SaherElmITCenter@1694056", "IdentitySecretKey": "SaherElmITCenter@1694056",
"ActionTokenExpirationDateProvider": "20m", "ActionTokenExpirationDateProvider": "20m",
"IdentityRoles": [ "IdentityRoles": [
"admin", "admin",
"responsible_manager", "responsible_manager",
"journalist", "journalist",
"chief_clerk", "chief_clerk",
"chief_clerk_assistant", "chief_clerk_assistant",
"actuary", "actuary",
"actuary_assistant", "actuary_assistant",
"reporter", "reporter",
"reporter_assistant", "reporter_assistant",
"agent", "agent",
"user" "user"
], ],
"AutoConfirmNewUsersEmail": false, "AutoConfirmNewUsersEmail": false,
"AutoConfirmNewUsersPhoneNumber": false, "AutoConfirmNewUsersPhoneNumber": false,
"RegistrationJustWithInvite": false, "RegistrationJustWithInvite": false,
"RequireRegistrationConfirm": true, "RequireRegistrationConfirm": true,
"MaxNumberOfVerificationCodeSend": 3, "MaxNumberOfVerificationCodeSend": 3,
"DeleyBetweenTwoVerificationCode": 180, "DeleyBetweenTwoVerificationCode": 180,
"NewUsersRole": "user", "NewUsersRole": "user",
"Policy": { "Policy": {
"Lockout": { "Lockout": {
"LockoutTimeSpanProvider": "15m", "LockoutTimeSpanProvider": "15m",
"MaxFailedAccessAttempts": 5, "MaxFailedAccessAttempts": 5,
"AllowedForNewUsers": true "AllowedForNewUsers": true
}, },
"Password": { "Password": {
"RequireDigit": true, "RequireDigit": true,
"RequiredLength": 6, "RequiredLength": 6,
"RequiredUniqueChars": 1, "RequiredUniqueChars": 1,
"RequireLowercase": true, "RequireLowercase": true,
"RequireNonAlphanumeric": true, "RequireNonAlphanumeric": true,
"RequireUppercase": true "RequireUppercase": true
}, },
"SignIn": { "SignIn": {
"RequiredEnabled": true, "RequiredEnabled": true,
"RequireConfirmedEmail": true, "RequireConfirmedEmail": true,
"RequireConfirmedPhoneNumber": false "RequireConfirmedPhoneNumber": false
}, },
"User": { "User": {
"AllowedUserNameCharacters": "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._", "AllowedUserNameCharacters": "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._",
"RequireUniqueEmail": true, "RequireUniqueEmail": true,
"MinLength": 6, "MinLength": 6,
"MaxLength": 20, "MaxLength": 20,
"MinAgeForRegistration": 18, "MinAgeForRegistration": 18,
"MaxAgeForRegistration": 60, "MaxAgeForRegistration": 60,
"InvalidUserNames": [ "InvalidUserNames": [
"saherelm", "saherelm",
"admin", "admin",
"responsible_manager", "responsible_manager",
"journalist", "journalist",
"chief_clerk", "chief_clerk",
"chief_clerk_assistant", "chief_clerk_assistant",
"actuary", "actuary",
"actuary_assistant", "actuary_assistant",
"reporter", "reporter",
"reporter_assistant", "reporter_assistant",
"agent", "agent",
"user" "user"
] ]
}, },
"Profile": { "Profile": {
"ContainsEmail": false, "ContainsEmail": false,
"ContainsPhoneNumber": false, "ContainsPhoneNumber": false,
"ContainsRoles": true, "ContainsRoles": true,
"ContainsLastLogin": false, "ContainsLastLogin": false,
"ContainsDateOfBirth": false, "ContainsDateOfBirth": false,
"ContainsCreationDate": true "ContainsCreationDate": true
} }
}, },
"IdentityMessages": [ "IdentityMessages": [
{ {
"Language": "fa-IR", "Language": "fa-IR",
"ResourceTitle": "user_invite_msg", "ResourceTitle": "user_invite_msg",
"TranslatedValue": "شما دعوت شده اید تا در سامانه ثبت نام کنید" "TranslatedValue": "شما دعوت شده اید تا در سامانه ثبت نام کنید"
}, },
{ {
"Language": "en-US", "Language": "en-US",
"ResourceTitle": "user_invite_msg", "ResourceTitle": "user_invite_msg",
"TranslatedValue": "You are Invited to Register at Dashboard" "TranslatedValue": "You are Invited to Register at Dashboard"
}, },
{ {
"Language": "fa-IR", "Language": "fa-IR",
"ResourceTitle": "registration_approve_msg", "ResourceTitle": "registration_approve_msg",
"TranslatedValue": "شما باید حساب کاربری خود را با ورود به پیوند زیر فعال کنید" "TranslatedValue": "شما باید حساب کاربری خود را با ورود به پیوند زیر فعال کنید"
}, },
{ {
"Language": "en-US", "Language": "en-US",
"ResourceTitle": "registration_approve_msg", "ResourceTitle": "registration_approve_msg",
"TranslatedValue": "you must activate your account by going to this link" "TranslatedValue": "you must activate your account by going to this link"
}, },
{ {
"Language": "fa-IR", "Language": "fa-IR",
"ResourceTitle": "registered_msg", "ResourceTitle": "registered_msg",
"TranslatedValue": "ثبت نام شما در سامانه با موفقیت پایان یافت" "TranslatedValue": "ثبت نام شما در سامانه با موفقیت پایان یافت"
}, },
{ {
"Language": "en-US", "Language": "en-US",
"ResourceTitle": "registered_msg", "ResourceTitle": "registered_msg",
"TranslatedValue": "you successfully registered at Dashboard" "TranslatedValue": "you successfully registered at Dashboard"
}, },
{ {
"Language": "fa-IR", "Language": "fa-IR",
"ResourceTitle": "verification_code_msg", "ResourceTitle": "verification_code_msg",
"TranslatedValue": "کد اعتبار سنجی شما در سامانه" "TranslatedValue": "کد اعتبار سنجی شما در سامانه"
}, },
{ {
"Language": "en-US", "Language": "en-US",
"ResourceTitle": "verification_code_msg", "ResourceTitle": "verification_code_msg",
"TranslatedValue": "Your Verification Code at Dashboard" "TranslatedValue": "Your Verification Code at Dashboard"
}, },
{ {
"Language": "fa-IR", "Language": "fa-IR",
"ResourceTitle": "change_password_msg", "ResourceTitle": "change_password_msg",
"TranslatedValue": "برای تغییر کلمه عبور پیوند زیر را دنبال کنید" "TranslatedValue": "برای تغییر کلمه عبور پیوند زیر را دنبال کنید"
}, },
{ {
"Language": "en-US", "Language": "en-US",
"ResourceTitle": "change_password_msg", "ResourceTitle": "change_password_msg",
"TranslatedValue": "for change password please follow this link" "TranslatedValue": "for change password please follow this link"
}, },
{ {
"Language": "fa-IR", "Language": "fa-IR",
"ResourceTitle": "password_changed_msg", "ResourceTitle": "password_changed_msg",
"TranslatedValue": "کلمه عبور شما در سامانه تغییر یافت" "TranslatedValue": "کلمه عبور شما در سامانه تغییر یافت"
}, },
{ {
"Language": "en-US", "Language": "en-US",
"ResourceTitle": "password_changed_msg", "ResourceTitle": "password_changed_msg",
"TranslatedValue": "your password at Dashboard changed" "TranslatedValue": "your password at Dashboard changed"
}, },
{ {
"Language": "fa-IR", "Language": "fa-IR",
"ResourceTitle": "new_device_logged_in_msg", "ResourceTitle": "new_device_logged_in_msg",
"TranslatedValue": "ابزار جدیدی با مشخصات ذیل در سامانه با حساب کاربری شما وارد شده است" "TranslatedValue": "ابزار جدیدی با مشخصات ذیل در سامانه با حساب کاربری شما وارد شده است"
}, },
{ {
"Language": "en-US", "Language": "en-US",
"ResourceTitle": "new_device_logged_in_msg", "ResourceTitle": "new_device_logged_in_msg",
"TranslatedValue": "new device with following details loggedin with your account in Dashboard" "TranslatedValue": "new device with following details loggedin with your account in Dashboard"
} }
] ]
}, },
"IdentityResourceConfiguration": { "IdentityResourceConfiguration": {
"Authority": "https://172.18.0.151", "Authority": "https://172.18.0.151",
"ApiName": "xSaherElmAPI", "ApiName": "xSaherElmAPI",
"ApiSecret": "s@H@1694056", "ApiSecret": "s@H@1694056",
"ClientId": "xSaherElmAPIClient", "ClientId": "xSaherElmAPIClient",
"ClientSecret": "s@H@1694056", "ClientSecret": "s@H@1694056",
"XPoweredValue": "SaherElmITCenter", "XPoweredValue": "SaherElmITCenter",
"XRevisionSecretKey": "SaherElmITCenter@1694056" "XRevisionSecretKey": "SaherElmITCenter@1694056"
}, },
"StorageConfiguration": { "StorageConfiguration": {
"Authority": "https://ids.saherelm.ir", "Authority": "https://ids.saherelm.ir",
"IdentityAuthority": "https://ids.saherelm.ir", "IdentityAuthority": "https://ids.saherelm.ir",
"Storage": "Storage", "Storage": "Storage",
"Temp": "Temp", "Temp": "Temp",
"Thumb": "Thumb", "Thumb": "Thumb",
"Uploads": "Uploads", "Uploads": "Uploads",
"Widgets": "Widgets", "Widgets": "Widgets",
"Image": "Image", "Image": "Image",
"Audio": "Audio", "Audio": "Audio",
"Video": "Video", "Video": "Video",
"Document": "Document", "Document": "Document",
"FilePrefix": "xSaherElm_", "FilePrefix": "xSaherElm_",
"ThumbPrefix": "Thumb_", "ThumbPrefix": "Thumb_",
"ThumbSize": 512, "ThumbSize": 512,
"ThumbQuality": 72, "ThumbQuality": 72,
"MaxFileSize": 41943040 "MaxFileSize": 41943040
}, },
"MessageConfiguration": { "MessageConfiguration": {
"MailConfigurations": { "MailConfigurations": {
"gmail": { "gmail": {
"Title": "SaherElm Dashboard", "Title": "SaherElm Dashboard",
"Host": "smtp.gmail.com", "Host": "smtp.gmail.com",
"Port": 587, "Port": 587,
"EnableSsl": true, "EnableSsl": true,
"Username": "saherelm@gmail.com", "Username": "saherelm@gmail.com",
"Password": "vzuz gtrk tndb ctbc" "Password": "vzuz gtrk tndb ctbc"
} }
}, },
"SmsConfigurations": { "SmsConfigurations": {
"yoursms": { "yoursms": {
"ServiceUrl": "http://sms.yourprovider.ir", "ServiceUrl": "http://sms.yourprovider.ir",
"Username": "user", "Username": "user",
"Password": "psw", "Password": "psw",
"LineNumber": "linenumber", "LineNumber": "linenumber",
"UserApiKey": "", "UserApiKey": "",
"SecretKey": "" "SecretKey": ""
} }
} }
}, },
"DbSeeder": { "DbSeeder": {
"UpdateExists": false, "UpdateExists": false,
"Clients": [ "Clients": [
{ {
"ClientId": "xSaherElmAPIClient", "ClientId": "xSaherElmAPIClient",
"ClientName": "Web Client of xMabsut API", "ClientName": "Web Client of xMabsut API",
"ClientSecrets": [ "ClientSecrets": [
{ {
"Description": null, "Description": null,
"Value": "NKaAKXeE9Ws+VVGGHsmM9DUO84cla4+hvx8swP1uuEg=", "Value": "NKaAKXeE9Ws+VVGGHsmM9DUO84cla4+hvx8swP1uuEg=",
"Expiration": null, "Expiration": null,
"Type": "SharedSecret" "Type": "SharedSecret"
} }
], ],
"Enabled": true, "Enabled": true,
"RedirectUris": ["https://localhost:5001/signin-oidc"], "RedirectUris": [
"AllowedGrantTypes": [ "https://localhost:5001/signin-oidc"
"hybrid", ],
"password", "AllowedGrantTypes": [
"client_credentials" "hybrid",
], "password",
"AllowedScopes": [ "client_credentials"
"IdentityServerApi", ],
"openid", "AllowedScopes": [
"profile", "IdentityServerApi",
"XAPI.read", "openid",
"XAPI.write", "profile",
"XAPI.admin", "XAPI.read",
"manage", "XAPI.write",
"offline_access" "XAPI.admin",
], "manage",
"AllowedCorsOrigins": [ "offline_access"
"http://saherelm.ir", ],
"AllowedCorsOrigins": [
"http://saherelm.ir",
"https://saherelm.ir", "https://saherelm.ir",
"http://saherelmhub.ir", "http://saherelmhub.ir",
"https://saherelmhub.ir" "https://saherelmhub.ir"
], ],
"AllowOfflineAccess": true, "AllowOfflineAccess": true,
"RefreshTokenUsage": 1, "RefreshTokenUsage": 1,
"AccessTokenType": 1, "AccessTokenType": 1,
"RefreshTokenExpiration": 0, "RefreshTokenExpiration": 0,
"AbsoluteRefreshTokenLifetime": 2592000, "AbsoluteRefreshTokenLifetime": 2592000,
"SlidingRefreshTokenLifetime": 1296000, "SlidingRefreshTokenLifetime": 1296000,
"UpdateAccessTokenClaimsOnRefresh": true, "UpdateAccessTokenClaimsOnRefresh": true,
"IdentityTokenLifetime": 300, "IdentityTokenLifetime": 300,
"AccessTokenLifetime": 3600, "AccessTokenLifetime": 3600,
"AuthorizationCodeLifetime": 300, "AuthorizationCodeLifetime": 300,
"DeviceCodeLifetime": 300 "DeviceCodeLifetime": 300
} }
], ],
"IdentityResources": ["openid", "profile", "email", "role"], "IdentityResources": [
"ApiResources": [ "openid",
{ "profile",
"Name": "IdentityServerApi" "email",
}, "role"
{ ],
"Name": "xSaherElmAPI", "ApiResources": [
"DisplayName": "xSaherElm API", {
"Description": "Protected by IdentityServer API Access", "Name": "IdentityServerApi"
"ApiSecrets": [ },
{ {
"Description": null, "Name": "xSaherElmAPI",
"Value": "NKaAKXeE9Ws+VVGGHsmM9DUO84cla4+hvx8swP1uuEg=", "DisplayName": "xSaherElm API",
"Expiration": null, "Description": "Protected by IdentityServer API Access",
"Type": "SharedSecret" "ApiSecrets": [
} {
], "Description": null,
"Enabled": true, "Value": "NKaAKXeE9Ws+VVGGHsmM9DUO84cla4+hvx8swP1uuEg=",
"Scopes": [ "Expiration": null,
"openid", "Type": "SharedSecret"
"profile", }
"XAPI.read", ],
"XAPI.write", "Enabled": true,
"XAPI.admin", "Scopes": [
"manage" "openid",
], "profile",
"UserClaims": [ "XAPI.read",
"name", "XAPI.write",
"role", "XAPI.admin",
"unique_name", "manage"
"gender", ],
"birthdate", "UserClaims": [
"picture", "name",
"email", "role",
"phone_number", "unique_name",
"email_verified", "gender",
"phone_number_verified", "birthdate",
"is_enabled", "picture",
"is_banned", "email",
"creation_date", "phone_number",
"last_login", "email_verified",
"given_name", "phone_number_verified",
"family_name" "is_enabled",
] "is_banned",
} "creation_date",
], "last_login",
"ApiScopes": [ "given_name",
{ "family_name"
"Name": "IdentityServerApi" ]
}, }
{ ],
"Name": "xSaherElmAPI" "ApiScopes": [
}, {
{ "Name": "IdentityServerApi"
"Name": "XAPI.read", },
"DisplayName": "Read Access for XAPI" {
}, "Name": "xSaherElmAPI"
{ },
"Name": "XAPI.write", {
"DisplayName": "Write Access for XAPI" "Name": "XAPI.read",
}, "DisplayName": "Read Access for XAPI"
{ },
"Name": "XAPI.admin", {
"DisplayName": "Admin Access for XAPI" "Name": "XAPI.write",
}, "DisplayName": "Write Access for XAPI"
{ },
"Name": "manage", {
"DisplayName": "Admin Access for All APIs" "Name": "XAPI.admin",
} "DisplayName": "Admin Access for XAPI"
], },
"Users": [ {
{ "Name": "manage",
"Id": "b5713f9f-34f4-49b2-9680-b71e2b2de969", "DisplayName": "Admin Access for All APIs"
"FirstName": "Hadi", }
"LastName": "Khazaee Asl", ],
"UserName": "admin", "Users": [
"Email": "hadi_khazaee_asl@yahoo.com", {
"EmailConfirmed": true, "Id": "b5713f9f-34f4-49b2-9680-b71e2b2de969",
"PhoneNumber": "+989121694056", "FirstName": "Hadi",
"PhoneNumberConfirmed": true, "LastName": "Khazaee Asl",
"Password": "s@H@1694056", "UserName": "admin",
"Role": "admin", "Email": "hadi_khazaee_asl@yahoo.com",
"DateOfBirth": "1982-09-17 20:30:00.0000000", "EmailConfirmed": true,
"IsEnable": true "PhoneNumber": "+989121694056",
}, "PhoneNumberConfirmed": true,
{ "Password": "s@H@1694056",
"Id": "83b09f5e-edd2-4e9a-8c5f-c4c129ee9d52", "Role": "admin",
"FirstName": "Hadi", "DateOfBirth": "1982-09-17 20:30:00.0000000",
"LastName": "Khazaee Asl", "IsEnable": true
"UserName": "agent", },
"Email": "hadi.khazaee.asl@gmail.com", {
"EmailConfirmed": true, "Id": "83b09f5e-edd2-4e9a-8c5f-c4c129ee9d52",
"PhoneNumber": "+989101879789", "FirstName": "Hadi",
"PhoneNumberConfirmed": true, "LastName": "Khazaee Asl",
"Password": "a@A@1694056", "UserName": "agent",
"Role": "agent", "Email": "hadi.khazaee.asl@gmail.com",
"DateOfBirth": "1982-09-17 20:30:00.0000000", "EmailConfirmed": true,
"IsEnable": true "PhoneNumber": "+989101879789",
} "PhoneNumberConfirmed": true,
] "Password": "a@A@1694056",
}, "Role": "agent",
"Logging": { "DateOfBirth": "1982-09-17 20:30:00.0000000",
"LogLevel": { "IsEnable": true
"Default": "Information", }
"Microsoft": "Warning", ]
"Microsoft.Hosting.Lifetime": "Information" },
} "Logging": {
}, "LogLevel": {
"AllowedHosts": "*" "Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
},
"XLogger": {
"Enabled": true,
"ApplicationName": "xIds",
"EnvironmentName": "Production",
"MinimumLevel": "Information",
"Queue": {
"Enabled": true,
"Capacity": 10000,
"ShutdownTimeoutSeconds": 10
},
"File": {
"Enabled": true,
"Directory": "./Logs",
"FileName": "xIds-.log",
"Format": "Json",
"MinimumLevel": "Information",
"RetainedFileCountLimit": 30
},
"Database": {
"Enabled": false,
"Provider": "Microsoft.Data.Sqlite",
"ConnectionString": "Filename=./Db/XLogs.db",
"TableName": "XLogs",
"AutoCreateTable": true,
"MinimumLevel": "Warning"
},
"Event": {
"Enabled": false,
"Topic": "application-logs",
"Action": "ApplicationLogCreated",
"Sender": "xIds",
"MinimumLevel": "Error"
}
}
},
"AllowedHosts": "*"
} }
+5 -14
View File
@@ -7,32 +7,25 @@
<PackageId>xSaherElm.xIds</PackageId> <PackageId>xSaherElm.xIds</PackageId>
<Company>SaherElm IT Center</Company> <Company>SaherElm IT Center</Company>
<TargetFramework>netcoreapp3.1</TargetFramework> <TargetFramework>netcoreapp3.1</TargetFramework>
<Description> <Description>
this project is an Identity Server for xSaherElm projects which provides Authentication and this project is an Identity Server for xSaherElm projects which provides Authentication and
Authorization of User's. Authorization of User's.
</Description> </Description>
<!-- Icon Definition --> <!-- Icon Definition -->
<PackageIcon>icon.png</PackageIcon> <PackageIcon>icon.png</PackageIcon>
<!-- Fix Duplicate TargetFramework Issue --> <!-- Fix Duplicate TargetFramework Issue -->
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute> <GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup> </PropertyGroup>
<!-- Icon Handling --> <!-- Icon Handling -->
<ItemGroup> <ItemGroup>
<None Include="../../Resources/Images/favicon.png" Link="icon.png" Pack="true" <None Include="../../Resources/Images/favicon.png" Link="icon.png" Pack="true" PackagePath="\icon.png" />
PackagePath="\icon.png" />
</ItemGroup> </ItemGroup>
<!-- Local Dependencies --> <!-- Local Dependencies -->
<ItemGroup> <ItemGroup>
<!-- <PackageReference Include="xDashboard.xMessageService" Version="1.0.0" /> <!-- <PackageReference Include="xDashboard.xMessageService" Version="1.0.0" />
<PackageReference Include="xDashboard.xStorageService" Version="1.0.0" /> --> <PackageReference Include="xDashboard.xStorageService" Version="1.0.0" /> -->
</ItemGroup> </ItemGroup>
<!-- Project Dependencies --> <!-- Project Dependencies -->
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Modules\xIdentityHelper\xIdentityHelper.csproj" /> <ProjectReference Include="..\Modules\xIdentityHelper\xIdentityHelper.csproj" />
@@ -40,7 +33,6 @@
<ProjectReference Include="..\Modules\xStorageService\xStorageService.csproj" /> <ProjectReference Include="..\Modules\xStorageService\xStorageService.csproj" />
<ProjectReference Include="..\Modules\xIdentityService\xIdentityService.csproj" /> <ProjectReference Include="..\Modules\xIdentityService\xIdentityService.csproj" />
</ItemGroup> </ItemGroup>
<!-- IdentityServer --> <!-- IdentityServer -->
<ItemGroup> <ItemGroup>
<PackageReference Include="IdentityServer4" Version="4.1.1" /> <PackageReference Include="IdentityServer4" Version="4.1.1" />
@@ -53,10 +45,8 @@
<PackageReference Include="IdentityModel.AspNetCore.OAuth2Introspection" Version="5.0.0" /> <PackageReference Include="IdentityModel.AspNetCore.OAuth2Introspection" Version="5.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="3.1.12" /> <PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="3.1.12" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="5.0.2" /> <PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="5.0.2" />
<PackageReference Include="IdentityModel.AspNetCore.AccessTokenValidation" <PackageReference Include="IdentityModel.AspNetCore.AccessTokenValidation" Version="1.0.0-preview.3" />
Version="1.0.0-preview.3" />
</ItemGroup> </ItemGroup>
<!-- Ef Core --> <!-- Ef Core -->
<ItemGroup> <ItemGroup>
<PackageReference Include="MySql.EntityFrameworkCore" Version="5.0.0" /> <PackageReference Include="MySql.EntityFrameworkCore" Version="5.0.0" />
@@ -72,16 +62,17 @@
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
</PackageReference> </PackageReference>
</ItemGroup> </ItemGroup>
<!-- For XML Documentation Support --> <!-- For XML Documentation Support -->
<PropertyGroup> <PropertyGroup>
<NoWarn>$(NoWarn);1591</NoWarn> <NoWarn>$(NoWarn);1591</NoWarn>
<GenerateDocumentationFile>true</GenerateDocumentationFile> <GenerateDocumentationFile>true</GenerateDocumentationFile>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup> </PropertyGroup>
<!-- Create Required Folders --> <!-- Create Required Folders -->
<Target Name="CreateRequiredFolder" AfterTargets="AfterPublish"> <Target Name="CreateRequiredFolder" AfterTargets="AfterPublish">
<MakeDir Directories="$(PublishDir)wwwroot" Condition="!Exists('$(PublishDir)wwwroot')" /> <MakeDir Directories="$(PublishDir)wwwroot" Condition="!Exists('$(PublishDir)wwwroot')" />
</Target> </Target>
<ItemGroup>
<ProjectReference Include="..\Modules\xLoggingService\xLoggingService.csproj" />
</ItemGroup>
</Project> </Project>