【问题标题】:what is return uri ionic3 for identity server 4?身份服务器 4 的返回 uri ionic3 是什么?
【发布时间】:2018-12-13 19:25:24
【问题描述】:

这是 identityserver4 中 xamarin 的重定向 uri,

RedirectUri = "xamarinformsclients://callback",

来源:

https://github.com/cloudscribe/sample-idserver/blob/master/xclient/XamarinFormsClient/XamarinFormsClient.Core/MainPage.xaml.cs

在应用浏览器中使用时,identityserver4 中 ionic 的重定向 uri 是什么。

const ClientId = "IonicClient";
const ClientSecret = "<SECRET>";
const RedirectUri = "http://localhost:8100/";

这是我的 uri。但它返回到这个网址而不是我的应用程序 离子科尔多瓦构建android

【问题讨论】:

  • 为什么无法连接您收到的错误消息?
  • 对不起,它返回到 localhost:8100 不是我的应用程序
  • 我会改正我的话
  • 你添加到身份服务器上的客户端了吗?如果您发布如何创建 IconicClient 可能会有所帮助。
  • “redirect_uri”:“io.ionic.starter”,“client_id”:“IonicClient”,“response_type”:“token id_token”,“state”:“WJXbyxlvDI”,“scope”:“ openid profile idserverapi offline_access", "access_type": "offline",

标签: oauth ionic3 identityserver4 openid-connect


【解决方案1】:

您在身份服务器上的客户端中设置的重定向 uri 必须与您在客户端应用程序中使用的完全匹配。您可以猜测或编造一个重定向 uri,您需要知道您希望返回到哪里。检查身份服务器上的日志,它应该会告诉您请求来自何处,并为您提供有关需要添加什么重定向 uri 的线索。

"redirect_uri":"io.ionic.starter",
"client_id":"IonicClient",
"response_type":"token id_token",
"state":"WJXbyxlvDI",
"scope":"openid profile idserverapi offline_access",
"access_type":"offline",

你已经设置了io.iconic.starter,你说你使用http://localhost:8100/。我建议你更新它并添加http://localhost:8100

【讨论】:

猜你喜欢
  • 2022-11-10
  • 2021-07-15
  • 2020-11-17
  • 1970-01-01
  • 2018-07-25
  • 1970-01-01
  • 2017-07-26
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多