Azure ad b2c 如果我使用MSAL 2.0&;如何从Azure B2C Angular app获取索赔详细信息;PKCE
我按照上的说明创建了一个用于MSAL 2.0和AD B2C的angular应用程序。我可以登录并查看本地存储中的数据。请看下图: 我的问题是:Azure ad b2c 如果我使用MSAL 2.0&;如何从Azure B2C Angular app获取索赔详细信息;PKCE,azure-ad-b2c,msal,Azure Ad B2c,Msal,我按照上的说明创建了一个用于MSAL 2.0和AD B2C的angular应用程序。我可以登录并查看本地存储中的数据。请看下图: 我的问题是: 我是否应该在本地存储中查看credentialType和clientId和authorityType的以下数据 我现在应该怎么做才能获得该登录用户的地址和其他一些详细信息 是的,希望在客户端上看到这一点。您可以在本地或会话存储之间配置它 使用getAccount()从令牌获取声明集 function signIn() { myMSALObj.log
credentialType
和clientId
和authorityType
的以下数据是的,希望在客户端上看到这一点。您可以在本地或会话存储之间配置它 使用getAccount()从令牌获取声明集
function signIn() {
myMSALObj.loginPopup(loginRequest)
.then(loginResponse => {
console.log("id_token acquired at: " + new Date().toString());
if (myMSALObj.getAccount()) {
updateUI();
}
我认为你的代码没有棱角。在angular项目中,客户机正在对服务器进行http调用以获取概要文件。你可以看到代码。
function signIn() {
myMSALObj.loginPopup(loginRequest)
.then(loginResponse => {
console.log("id_token acquired at: " + new Date().toString());
if (myMSALObj.getAccount()) {
updateUI();
}