azure - 如何将自定义属性传递到 Azure AD 应用程序中的重定向 URL?

标签 azure authentication azure-active-directory

我正在 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.

引用:

https://learn.microsoft.com/en-us/azure/active-directory/develop/reference-breaking-changes#redirect-uris-can-now-contain-query-string-parameters

关于azure - 如何将自定义属性传递到 Azure AD 应用程序中的重定向 URL?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60399870/

相关文章:

azure - 如何使用 terraform 将来自 SQL 托管实例的连接字符串存储在 Azure Key Vault 中

php - 通过 mysql 进行 JSON Android 登录验证

authentication - 在运行时向 OWIN 管道注册新的中间件,无需重新启动应用程序

node.js - 如何从 VSTS 部署到 azure 应用程序服务?

c# - 在异步方法中绑定(bind)到输出 Blob 时,将 Blob 绑定(bind)到 IAsyncCollector 时出错

authentication - 如何验证以查看 mongodb 的 http 控制台?

java - 如何使用 Spring Boot for Azure B2C 获取 AccessToken

azure-active-directory - 无法从 B2C 更新访问 token ,错误 AADB2C90077

powershell - Azure Active Directory 应用程序和服务主体

c# - 由于对象的当前状态,操作无效。使用 dotnet core 5 在 eventhub 中获取 microsoft.azure.amqp