我有一个具有移动(android 和 Ios)和 Web UI(SPA)的解决方案,两者都与常见的 api 通信。我们使用 AD B2C 来验证用户身份。我们有一个业务需求,系统管理员删除用户。我们正在使用图形 API 来删除后端服务中的用户。这是分两步完成的。
1) revoke the sign in session to kill the active sessions. Document(https://learn.microsoft.com/en-us/graph/api/user-revokesigninsessions?view=graph-rest-1.0&tabs=http)
2) Deleting the user account from b2c using graph api.
Run Code Online (Sandbox Code Playgroud)
一旦 accesstoken 的生命周期到期,已删除的用户将从 Web ui (SPA) 中注销,但不会从移动应用程序中注销。
对于移动应用程序,我们使用 MSALandroid 0.2.2;对于 SPA,我们使用 MSAL Angular 0.1.4。还尝试在 ad b2c 中为移动和 Web 应用程序配置单个和两个不同的应用程序。
我是否缺少任何移动应用程序?如何从移动应用程序撤销会话?
azure-active-directory azure-ad-graph-api azure-ad-b2c microsoft-graph-api