我正在 MVC 应用程序中使用 Azure AD 身份验证对用户进行身份验证,但我有一些动态参数要传递到我的重定向 uri。除了查询字符串之外,还有什么方法可以传递这些参数,因为查询字符串仅适用于静态参数。
我需要将一些属性传递给身份验证,以便我可以将它们返回到我的重定向 uri。
谢谢
最佳答案
请引用以下官方文档:
Azure AD applications can now register and use redirect (reply) URIs with static query parameters (such as https://contoso.com/oauth2?idp=microsoft) for OAuth 2.0 requests. Dynamic redirect URIs are still forbidden as they represent a security risk, and this cannot be used to retain state information across an authentication request - for that, use the state parameter.
引用:
关于azure - 如何将自定义属性传递到 Azure AD 应用程序中的重定向 URL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60399870/