1
Office 365ログインでExcelアドインを認証するためにADAL.jsライブラリを使用しています。私はこれにAzure ADアプリケーションを使用しており、必要な権限も与えています。私がADAL.jsで使用した設定は以下の通りです:Office 365ログイン(ADAL.js)で保存されたユーザー情報がありません
var config = {
tenant: tenant,
clientId: clientId,
redirectUri: redirectUrl,
postLogoutRedirectUri: logoutUrl,
extraQueryParameter: 'scope=openid+profile',
cacheLocation: 'localStorage'
};
ログインは正常に動作します。アドインのホームページに正しくリダイレクトされますが、getCachedUser
機能を使用してユーザー情報を取得することはできません。私が得るのはnull
という値です。私はここで何か間違っていますか?
これは私が期待されるソリューションに最も近いと思われます。ユーザーの電子メールを取得する方法はありますか? – immysl
@immysl AFAIK、このライブラリは、ユーザーの電子メール(UPN?)を取得することをサポートしていません。この問題を回避するには、トークンをデコードして取得することができます。 –
ありがとうございます。私はそれを試してみる:) – immysl