【发布时间】:2021-04-24 20:41:47
【问题描述】:
我在基于 .NET Core 的 Angular 应用程序中使用 IdentityServer,并尝试在 appSettings.json 文件中设置一些参数,例如 client_id、redirect_uri、authority。
"IdentityServer": {
"Key": {
"Type": "Development"
},
"Authentication": {
"Authority": "localhost:8081",
"ClientId": "localhost:8081",
"AppIdUri": "localhost:8081"
}
}
那么,我该怎么做呢?
我需要通过appSettings.json设置这些参数,并在使用以下网址时检索它们:https://localhost:8081/_configuration/DemoProject.Web
【问题讨论】:
-
@user2250152 那是什么?我不使用亚马逊 AWS。
-
还有人不知道 Identity Server 和 .NET Core 吗?
-
您基本上是在问如何从
appsettings.json读取值吗?set these parameters via appSettings.json到底是什么意思?澄清你的问题。 -
我有点困惑,抱歉。但我需要通过
appSettings.json设置这些参数,并在使用以下网址时检索它们:https://localhost:8081/_configuration/DemoProject.Web。那么,这个url是否打开了appsettings.json中的参数呢?我不这么认为,但我只是设置了这些参数并通过这个 url 检索这些参数。有什么帮助吗?
标签: c# angular asp.net-core .net-core identityserver4