azure - Azure 目录中应用的回调 URL
问题描述
我需要为回调 url 添加一个自定义方案,比如myapp://example.com/oauth/callback
能够重定向回 ios 和 android 设备中的应用程序,但我不能这样做,因为它说架构无效(它只允许http://
and https://
)。
我在那里做:
Azure Active Directory -> App registration -> app -> Reply URL
有什么解决方法吗?
解决方案
而不是尝试通过
Azure Active Directory -> App registration -> app -> settings -> Reply URL
导航
Azure Active Directory -> App registration -> app -> Manifest
在那里,您将看到应用程序的 JSON 表示。搜索一个名为
"replyUrls": [],
在其中添加回复网址,然后按顶部的保存。
"replyUrls": [
"myapp://example.com/oauth/callback"
],
导航回
Azure Active Directory -> App registration -> app -> settings -> Reply URL
并验证已设置回复 url。
这应该可以工作,因为客户端代码正在执行验证而不是服务器端。
希望这可以帮助
推荐阅读
- python - 为什么我的代码中的 GIF 调色板损坏了?
- javascript - Chrome 扩展 - 如何从 JS 访问属性
- discord.py - 命令引发异常:AttributeError:“NoneType”对象没有属性“发送”
- python - 为什么python中的扩展列表内存即使在弹出所有元素后也没有在python中释放
- android - 如何在回收站视图中单击的项目上将相应的数据返回给 viewpager2?
- javascript - Javascript 从发出事件中获取结果
- flutter - Flutter easy_localization 找不到本地化键
- php - 自定义所见即所得 ACF
- haskell - 管道元素的异步处理
- javascript - React HOC 有条件地渲染组件