如何在php中撤销用户对Mi​​crosoft APP的访问权限 [英] How to revoke access to Microsoft APP for a user in php

查看:44
本文介绍了如何在php中撤销用户对Mi​​crosoft APP的访问权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于如何撤销使用 PHP 或任何编程语言的用户帐户对 Microsoft APP 的访问权限,我已经搜索了很长时间,但找不到...

I've searched long and hard about how to revoke access to the Microsoft APP for a user account in PHP or any programming languages for that matter but couldn't find it...

似乎没有任何用于实现它的 msdn 文档...login.microsoftonline.com"中也没有任何 API URL 端点.

There doesn't seem to be any msdn docs for achieving it... nor any API URL Endpoints in "login.microsoftonline.com".

我们是否应该删除 Web 应用数据库中的令牌并保留它?

Should we just remove the token in our web app database and just leave it?

但是在访问 帐户设置时 ->安全和隐私 ->已连接的应用程序 该应用程序仍然存在...

but while accessing the account settings -> security and privacy -> connected apps the app is still there...

请有人分享 url 端点或正确的方法

Plzzz someone share the url endpoint or the right method to do so

注意:但是 google php 客户端有 revoke 方法,他们将令牌发送到端点 "https://accounts.google.com/o/oauth2/revoke"

note: but google php client has the revoke method and they send the token to endpoint "https://accounts.google.com/o/oauth2/revoke"

微软是否有类似的撤销端点?

is there any similar revoke endpoint for microsoft?

推荐答案

如果您正在寻找禁用租户中的用户帐户以访问 AD 应用程序的方法.

If you are looking for the method to disable the user account in your tenant to access against to your AD applications.

您可以将用户帐户配置文件中的 accountEnabled 属性设置为 false,这将锁定用户帐户以防止它授权或验证您的应用程序.

You can set the accountEnabled property in the user account profile to false, which will lock the user account to prevent it authorize or authentic your applications.

您可以利用 Microsoft Graph API 来处理这些操作.请参阅 https://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/user_update 了解 Microsoft Graph 中此 API 的详细信息.

You can leverage Microsoft Graph APIs to handle these operations. Refer to https://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/user_update for the details of this API in Microsoft Graph.

这里是 https://github 上的 PHP 示例.com/Azure-Samples/active-directory-php-graphapi-web,介绍了如何使用 Microsoft Graph 处理租户中的用户帐户.

And here is the sample in PHP at https://github.com/Azure-Samples/active-directory-php-graphapi-web, which presents how to use Microsoft Graph to handle users accounts in tenant.

这篇关于如何在php中撤销用户对Mi​​crosoft APP的访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆