因此,我正在搜索的是撤消OAuth2访问端点,例如Microsoft Identity平台上的Google。
该应用使用Microsoft Identity平台和Graph API来获取访问和使用用户邮件,日历,联系人等。
基本上,我有一个应用X ,
Google的API的 Google devoke devoke访问链接。因此,当我使用刷新令牌击中此API时 - >应用程序也可以访问您的数据屏幕。
你们可以帮我找到Microsoft的API是否可以找到的,并将我指向它
谢谢
So what I am searching for is a Revoke oauth2 Access Endpoint Like Google's on Microsoft Identity platform.
Basically I have an App x which uses Microsoft identity platform and graph API to gain Access and use Users Mail,Calendar,contacts etc.
When the User want's their Microsoft Access to be removed from My app or wishes to delete their Account.
- i need to revoke the Access Token and Refresh Token I have and My App Should be removed from the 'Microsoft Portal-> privacy -> Apps and Services That can Access your Data '
so that the user can be sure that the Integration is removed.
This feature is available with google's API's Google Revoke Access Link. So when i Hit this api with my refresh token all the access is removed and my App disappears from the 'google dashboard->apps which access your data' screen too.
Can you guys please help me find if this is Available with Microsoft's API and Point me towards it
Thanks
发布评论
评论(1)
将无效的应用程序为用户生成的刷新令牌,这也使给用户浏览器中的会话cookie发出的代币无效。
要在访问令牌的寿命之间撤销授权,请查看以下命令。
ex: 使用powershell
用户的对象ID。
使用Microsoft Graph API
相同的操作,其中如下命令(powerShell)吊销了刷新令牌的当前记录的刷新令牌
用户。
revoke-azureadsignedinuserallrefreshtoken
作为
admin
,您可以从“用户和组”中删除用户企业应用程序的部分
需要用户分配吗?设置为“属性”,然后
用户可以直接转到门户并删除应用程序。
在上述两种情况下访问我的应用程序门户时,该应用程序将看不到该应用程序。
您可以将以下脚本用于 从应用程序中删除用户和角色
#为分配给用户的角色分配ID
#below cmd将显示为wha thal分配
#在下面命令下方删除Applore分配检查。
参考:
Microsoft Entra |微软文档
The Revoke-AzureADUserAllRefreshToken will invalidate applications refresh tokens generated for user which also invalidates tokens issued to session cookies in a browser for the user.
To revoke authorization in between the life span of the access token, please check below commands.
Ex: using powershell
object id of user.
Same operation using Microsoft graph API
Where as below command(powershell) revokes refresh token for current logged in
user.
Revoke-AzureADSignedInUserAllRefreshToken
As the
admin
,you can remove user from the "Users and groups"section of the enterprise app.
User assignment required? Is set to no under properties, then the
user can directly go to portal and delete the app.
The app will not be visible for that user when visiting the My apps portal in both the above cases.
You can use the following script to remove a user and role from an application:
#Get the ID of role assignment which is assigned to user to unassign
#below cmd will show wha tall is assigned
#In order to remove the Approle assignment check below command.
References:
Microsoft Graph v1.0 | Microsoft Docs
Microsoft Entra | Microsoft Docs