使用MSAL在Azure AD B2C Android中注销 [英] Logout in Azure AD B2C Android using MSAL

查看:67
本文介绍了使用MSAL在Azure AD B2C Android中注销的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已使用MSAL libraryAzure AD B2C集成到了我的移动应用程序中.我已经为SignIn and SignUp创建了用户流.身份验证成功后,我将获得访问令牌.因此,我有一个活动页面"上的移动应用程序上设计有我的注销按钮,因此,一旦我单击了应用程序上设计的注销按钮,我就需要从该应用程序中获取用户signedOut.那么我们该如何在Android上的AZURE AD B2C MSAL中执行SignOut?

i have integrated Azure AD B2C on my mobile App using MSAL library. I have created the user flows for SignIn and SignUp. I'am getting the access token once the authentication is success. so i have my logout button designed on my Mobile App on one of my Activity Page, so once i click on my logout button designed on App, i need to get the user signedOut from the App. so how can we do the SignOut in AZURE AD B2C MSAL on Android?

即使我清除了按我的喜好保存的访问令牌,也可以吗?还是通过MSAL库从Azure侧的Provideb登出还有其他方法吗?

is it ok even if i clear the access token saved on my preference? or is there any other way to signout from Azure side provideb by MSAL library?

推荐答案

MSAL库提供了end_session_endpointURL进行请求. "nofollow noreferrer> B2C政策元数据.请记住,支持单点退出仅适用于自定义策略,并且作用域仅限于同一浏览器,而不适用于设备.

The MSAL library provides a logout method that clears the cache in browser storage and sends a sign-out request to Azure Active Directory (Azure AD). Request will be done against the end_session_endpoint URL obtained from the B2C policy metadata. Keep in mind single sign out is supported only by custom policies and that it's scoped to the same browser, not device.

对于本机Android移动应用程序,请使用

For a Native Android mobile app please use the signout function in Ms Document

这篇关于使用MSAL在Azure AD B2C Android中注销的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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