c# - 如何更改 IdentityServer OIDC 发现端点基本 URL?
问题描述
IdentityServer4 提供了一个 OIDC 发现端点,可用于检索有关授权服务器的元数据,包括令牌端点。发现端点可通过 /.well-known/openid-configuration相对于您的 Token Server 的基地址获得。例如,如果我们在本地运行应用程序并对以下端点执行 GET 请求:
https://localhost:44354/.well-known/openid-configuration
然后,我们将看到以下 JSON 模式:
{
"issuer": "https://localhost:44354",
"jwks_uri": "https://localhost:44354/.well-known/openid-configuration/jwks",
"authorization_endpoint": "https://localhost:44354/connect/authorize",
"token_endpoint": "https://localhost:44354/connect/token",
"userinfo_endpoint": "https://localhost:44354/connect/userinfo",
"end_session_endpoint": "https://localhost:44354/connect/endsession",
// code omitted for brevity
}
基于“发现端点可通过 /.well-known/openid-configuration相对于您的令牌服务器的基地址获得”子句,我想知道如何更改此端点的基地址。是否可以在 ASP.NET Core 应用程序中使用?
解决方案
推荐阅读
- node.js - 创建另一个时如何填充现有的 Mongo 文档?
- typescript - 使用 typescript 从数组 json 响应中捕获数据
- swift - 当我在 swiftui 中实现导航链接时,我的视图向上移动
- ios - SSL pinning 不起作用(Objective-C,使用 NSURLSession)
- ejs - SyntaxError: missing ) 在编译 ejs 时 index.ejs 中的参数列表之后 - 虽然正确吗?
- azure - Kubernetes 中的 Flink 作业部署
- ruby-on-rails - ERB 不显示实例变量值
- sql - 从主查询中获取所有具有 id 的行的总和
- javascript - 在模态mvc 5中传递输入“隐藏”的数据
- sql - SQL - 如果缺少,则添加一个值