Browse Source

集成IdentityServer4登录

pull/10/head
王军 5 years ago
parent
commit
c15b8ba5b3
  1. 1
      .gitignore
  2. 9
      aspnet-core/services/host/CompanyName.ProjectName.HttpApi.Host/Logs/logs.txt
  3. 48
      aspnet-core/services/host/CompanyName.ProjectName.HttpApi.Host/appsettings.Production.json

1
.gitignore

@ -262,3 +262,4 @@ content/src/Zzz.DbMigrator/Logs/*
/aspnet-core/services/src/CompanyName.ProjectName.HttpApi.Host/Logs
/aspnet-core/services/src/CompanyName.ProjectName.IdentityServer/appsettings.Production.json
/aspnet-core/services/src/CompanyName.ProjectName.HttpApi.Host/appsettings.Production.json
/aspnet-core/services/host/CompanyName.ProjectName.HttpApi.Host/appsettings.Production.json

9
aspnet-core/services/host/CompanyName.ProjectName.HttpApi.Host/Logs/logs.txt

@ -305434,3 +305434,12 @@ System.OperationCanceledException: The operation was canceled.
2021-09-11 16:44:55.169 +08:00 [DBG] Transport connection checking...
2021-09-11 16:44:55.169 +08:00 [DBG] Transport connection healthy!
2021-09-11 16:44:55.375 +08:00 [DBG] Server szqh003802a:27684:4bb8e567 heartbeat successfully sent
2021-09-11 16:45:25.176 +08:00 [DBG] Transport connection checking...
2021-09-11 16:45:25.176 +08:00 [DBG] Transport connection healthy!
2021-09-11 16:45:25.383 +08:00 [DBG] Server szqh003802a:27684:4bb8e567 heartbeat successfully sent
2021-09-11 16:45:55.179 +08:00 [DBG] Transport connection checking...
2021-09-11 16:45:55.179 +08:00 [DBG] Transport connection healthy!
2021-09-11 16:45:55.399 +08:00 [DBG] Server szqh003802a:27684:4bb8e567 heartbeat successfully sent
2021-09-11 16:46:25.182 +08:00 [DBG] Transport connection checking...
2021-09-11 16:46:25.182 +08:00 [DBG] Transport connection healthy!
2021-09-11 16:46:25.404 +08:00 [DBG] Server szqh003802a:27684:4bb8e567 heartbeat successfully sent

48
aspnet-core/services/host/CompanyName.ProjectName.HttpApi.Host/appsettings.Production.json

@ -1,48 +0,0 @@
{
"App": {
"CorsOrigins": "https://*.ProjectName.com,http://localhost:4200,http://localhost:3100,http://120.24.194.14:8012"
},
"ConnectionStrings": {
"Default": "Data Source=120.24.194.14;Database=CompanyNameProjectNameDB;uid=root;pwd=1q2w3E*;charset=utf8mb4;Allow User Variables=true;AllowLoadLocalInfile=true",
},
"Cache": {
"Redis": {
"ConnectionString": "120.24.194.14",
"Password": "1q2w3E*",
"DatabaseId": 1
}
},
"AuthServer": {
"Authority": "https://localhost:44354",
"RequireHttpsMetadata": "true",
"SwaggerClientId": "ProjectName_Swagger",
"SwaggerClientSecret": "1q2w3e*"
},
"StringEncryption": {
"DefaultPassPhrase": "YFLtqf75HkDnKR0n"
},
"Jwt": {
"Audience": "CompanyNameProjectName",
//
"SecurityKey": "dzehzRz9a8asdfasfdadfasdfasdfafsdadfasbasdf=",
"Issuer": "CompanyNameProjectName",
//
"ExpirationTime": 24
// hour
},
"RabbitMq": {
"HostName": "localhost",
"UserName": "admin",
"Password": "admin"
},
"LogToElasticSearch": {
"Enabled": "true",
"ElasticSearch": {
"Url": "http://es.cn",
"IndexFormat": "CompanyName.ProjectName.HttpApi.dev-{0:yyyy.MM.dd}",
"UserName": "CompanyName.ProjectName",
"Password": "TCYobkZxWu0ELYZY"
}
}
}
Loading…
Cancel
Save