第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

無(wú)法使用 adal4j Api 獲取 Azure 令牌

無(wú)法使用 adal4j Api 獲取 Azure 令牌

大話西游666 2021-09-12 20:00:25
我正在嘗試從 Microsoft 圖形中讀取用戶配置文件/圖像,并且正在使用 adal4j-1.5.0.jar 生成 azure 令牌,以便基于令牌我可以調(diào)用圖形 API/Microsoft delve。我在下面的代碼中遇到問(wèn)題。在不生成令牌或任何異常的情況下,在下面的行之后移動(dòng)到 finally 塊很簡(jiǎn)單?!拔磥?lái)未來(lái) = context.acquireToken(resourceUri, credential, null);”String clientId = "clientid";String clientSecret = "cleintsecret";String resourceUri = "https://graph.microsoft.com/v1.0/me";String redirectUri = "http://localhost:9082/contextroot";String authorityUri ="https://login.microsoftonline.com/{tenent id}/oauth2/authorize";AuthenticationContext context = null;AuthenticationResult result = null;ExecutorService service = null;try {    service = Executors.newFixedThreadPool(1);    context = new AuthenticationContext(authorityUri, false, service);    ClientCredential credential = new ClientCredential(clientId,clientSecret);    Future<AuthenticationResult> future = context.acquireToken(resourceUri, credential, null);    result = future.get();}finally {    service.shutdown();}
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 223 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)