[英]Notify client app when admin consent is revoked from Azure Active Directory
I have a Rails app to which a user can connect their Office365 account.我有一个 Rails 应用程序,用户可以将其 Office365 帐户连接到该应用程序。
In the scenario where the user has a work account and their admin gives consent to the required permissions, but afterwards revokes this consent by deleting the app from Azure Active Directory >> Enterprise Applications在用户拥有工作帐户且其管理员同意所需权限,但随后通过从Azure Active Directory >> 企业应用程序中删除应用程序来撤销此同意的情况下
How will my app know that the access has been revoked so that it can show an appropriate message to the user?我的应用程序如何知道访问权限已被撤销,以便向用户显示适当的消息? Is there a webhook call for this?
是否有网络钩子调用? Is there a way to figure it out from a particular error response when the API calls are made?
当进行 API 调用时,有没有办法从特定的错误响应中找出来?
If the customer has removed the app from their tenant, you will no longer be able to obtain an access token to make API calls.如果客户已从其租户中删除应用程序,您将无法再获取访问令牌以进行 API 调用。 The exact error message/experience depends on how exactly you are obtaining access token.
确切的错误消息/经验取决于您获取访问令牌的准确程度。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.