簡體   English   中英

無法在Azure門戶進行身份驗證

[英]Unable to Authenticate at Azure Portal

我已經使用https://github.com/satalyst/powerbi-rest-java在azure門戶進行身份驗證以將power bi報告嵌入到我的應用程序中。

有一個名為Office365Authenticator的類,我曾使用其憑據進行身份驗證。 我提供了

  1. 客戶端ID =“ 3b54c59c-2602-4100-b4e5-xxxxxxxxxxxx”(我想是Azure門戶上的應用程序ID)
  2. 租戶id =“ b3e3ea8a-1379-4a80-acdd-xxxxxxxxxxxx”(目錄ID)
  3. 用戶名(azure門戶登錄電子郵件)
  4. 密碼(Azure門戶登錄密碼)

    Office365Authenticator廣告=新的Office365Authenticator(CLIENT_ID,TENANT,USERNAME,PASSWORD);

但這會引發錯誤

{"error":"invalid_request","error_description":"AADSTS90019: No tenant-identifying information found in either the request or implied by any provided credentials.\r\nTrace ID: 948699d9-0f5d-4dd8-af3d-xxxxxxxxxxxx\r\nCorrelation ID: 27a9bdc9-90c1-4b40-9fe8-xxxxxxxxxxxx\r\nTimestamp: 2019-03-07 14:27:04Z"}

我進行了搜索,但是沒有確切的線索,當我確認租戶ID正確並且用戶與此租戶ID相關聯時,在我的情況下會發生這種情況,如所附圖像所示。

在此處輸入圖片說明

任何幫助將不勝感激。

要使用ROPC(用戶名和密碼),您應該具有以下參數:

1. client_id: your application id in the azure portal
2. client_secret: you could create this key in the application
3. grant_type:password
4. username: the user account that you want in the azure portal
5. password: the password for your account
6. scope: https://graph.microsoft.com/User.Read email openid(here use the microsoft graph api as an example, and the related permissions: User.Read, email, openid)

有關詳細信息,請參閱此處

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM