How do you use Revoke-AzureADUserAllRefershToken with Azure AD B2C?

我的未来我决定 提交于 2019-12-24 01:45:11

问题


I saw this answer and update (Revocation endpoint in Azure AD B2C) but I'm not sure how to use this with Azure AD B2C. I've opened up an Azure Cloud Shell and it comes back that the object ID does not exist. I'm running this from my parent Azure directory because I could not open up an Azure Cloud Shell inside my Azure AD B2C directory (it said "No valid subscription found"). Do you have to run this command from within the Azure AD B2C directory? If so how do I link a subscription so that I can do this?


回答1:


I don't believe you can use Azure Cloud Shell because an Azure AD B2C directory isn't related to an Azure subscription like an Azure AD directory is related to one.

You can use either:

  1. The Revoke-AzureADUserAllRefreshToken cmdlet of the Azure Active Directory PowerShell for Graph module.
  2. The Invalidate all refresh tokens for a user operation of the Azure Active Directory Graph API.


来源:https://stackoverflow.com/questions/50064494/how-do-you-use-revoke-azureaduserallrefershtoken-with-azure-ad-b2c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!