177 lines
4.3 KiB
JSON
177 lines
4.3 KiB
JSON
{
|
|
"AllowedOrigins": [
|
|
"https://localhost:5001",
|
|
"https://localhost:6001",
|
|
"https://saherelm.ir",
|
|
"https://api.saherelm.ir",
|
|
"https://saherelmhub.ir",
|
|
"https://api.saherelmhub.ir",
|
|
"https://192.168.1.15:5001",
|
|
"https://192.168.1.110:5001"
|
|
],
|
|
"IdentityResourceConfiguration": {
|
|
"Authority": "https://localhost:4001",
|
|
"ApiName": "xSaherElmAPI",
|
|
"ApiSecret": "s@H@1694056",
|
|
"ClientId": "xSaherElmAPIClient",
|
|
"ClientSecret": "s@H@1694056",
|
|
"XPoweredValue": "SaherElmITCenter",
|
|
"XRevisionSecretKey": "SaherElmITCenter@1694056"
|
|
},
|
|
"StorageConfiguration": {
|
|
"Authority": "https://localhost:4001",
|
|
"IdentityAuthority": "https://localhost:4001",
|
|
"Storage": "Storage",
|
|
"Temp": "Temp",
|
|
"Thumb": "Thumb",
|
|
"Uploads": "Uploads",
|
|
"Widgets": "Widgets",
|
|
"Image": "Image",
|
|
"Audio": "Audio",
|
|
"Video": "Video",
|
|
"Document": "Document",
|
|
"FilePrefix": "xSaherElm_",
|
|
"ThumbPrefix": "Thumb_",
|
|
"ThumbSize": 512,
|
|
"ThumbQuality": 72,
|
|
"MaxFileSize": 41943040
|
|
},
|
|
"DbSeeder": {
|
|
"UpdateExists": false,
|
|
"Clients": [
|
|
{
|
|
"ClientId": "xSaherElmAPIClient",
|
|
"ClientName": "Web Client of xSaherElm API",
|
|
"ClientSecrets": [
|
|
{
|
|
"Description": null,
|
|
"Value": "NKaAKXeE9Ws+VVGGHsmM9DUO84cla4+hvx8swP1uuEg=",
|
|
"Expiration": null,
|
|
"Type": "SharedSecret"
|
|
}
|
|
],
|
|
"Enabled": true,
|
|
"RedirectUris": [
|
|
"https://localhost:5001/signin-oidc"
|
|
],
|
|
"AllowedGrantTypes": [
|
|
"hybrid",
|
|
"password",
|
|
"client_credentials"
|
|
],
|
|
"AllowedScopes": [
|
|
"IdentityServerApi",
|
|
"openid",
|
|
"profile",
|
|
"XAPI.read",
|
|
"XAPI.write",
|
|
"XAPI.admin",
|
|
"manage",
|
|
"offline_access"
|
|
],
|
|
"AllowedCorsOrigins": [
|
|
"https://localhost:5001",
|
|
"https://localhost:6001",
|
|
"http://saherelm.ir",
|
|
"https://saherelm.ir",
|
|
"http://saherelmhub.ir",
|
|
"https://saherelmhub.ir"
|
|
],
|
|
"AllowOfflineAccess": true,
|
|
"RefreshTokenUsage": 1,
|
|
"AccessTokenType": 1,
|
|
"RefreshTokenExpiration": 0,
|
|
"AbsoluteRefreshTokenLifetime": 2592000,
|
|
"SlidingRefreshTokenLifetime": 1296000,
|
|
"UpdateAccessTokenClaimsOnRefresh": true,
|
|
"IdentityTokenLifetime": 300,
|
|
"AccessTokenLifetime": 3600,
|
|
"AuthorizationCodeLifetime": 300,
|
|
"DeviceCodeLifetime": 300
|
|
}
|
|
],
|
|
"IdentityResources": [
|
|
"openid",
|
|
"profile",
|
|
"email",
|
|
"role"
|
|
],
|
|
"ApiResources": [
|
|
{
|
|
"Name": "IdentityServerApi"
|
|
},
|
|
{
|
|
"Name": "xSaherElmAPI",
|
|
"DisplayName": "xSaherElm API",
|
|
"Description": "Protected by IdentityServer API Access",
|
|
"ApiSecrets": [
|
|
{
|
|
"Description": null,
|
|
"Value": "NKaAKXeE9Ws+VVGGHsmM9DUO84cla4+hvx8swP1uuEg=",
|
|
"Expiration": null,
|
|
"Type": "SharedSecret"
|
|
}
|
|
],
|
|
"Enabled": true,
|
|
"Scopes": [
|
|
"openid",
|
|
"profile",
|
|
"XAPI.read",
|
|
"XAPI.write",
|
|
"XAPI.admin",
|
|
"manage"
|
|
],
|
|
"UserClaims": [
|
|
"name",
|
|
"role",
|
|
"unique_name",
|
|
"gender",
|
|
"birthdate",
|
|
"picture",
|
|
"email",
|
|
"phone_number",
|
|
"email_verified",
|
|
"phone_number_verified",
|
|
"is_enabled",
|
|
"is_banned",
|
|
"creation_date",
|
|
"last_login",
|
|
"given_name",
|
|
"family_name"
|
|
]
|
|
}
|
|
],
|
|
"ApiScopes": [
|
|
{
|
|
"Name": "IdentityServerApi"
|
|
},
|
|
{
|
|
"Name": "xSaherElmAPI"
|
|
},
|
|
{
|
|
"Name": "XAPI.read",
|
|
"DisplayName": "Read Access for XAPI"
|
|
},
|
|
{
|
|
"Name": "XAPI.write",
|
|
"DisplayName": "Write Access for XAPI"
|
|
},
|
|
{
|
|
"Name": "XAPI.admin",
|
|
"DisplayName": "Admin Access for XAPI"
|
|
},
|
|
{
|
|
"Name": "manage",
|
|
"DisplayName": "Admin Access for All APIs"
|
|
}
|
|
]
|
|
},
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft": "Warning",
|
|
"Microsoft.Hosting.Lifetime": "Information"
|
|
}
|
|
},
|
|
"AllowedHosts": "*"
|
|
} |