Java 无法在Azure门户上进行身份验证
我曾经在azure portal上进行身份验证,以便在我的应用程序中嵌入power bi报告 有一个名为Office365Authenticator的类,我使用它来使用凭据进行身份验证。我提供了Java 无法在Azure门户上进行身份验证,java,azure,adal,Java,Azure,Adal,我曾经在azure portal上进行身份验证,以便在我的应用程序中嵌入power bi报告 有一个名为Office365Authenticator的类,我使用它来使用凭据进行身份验证。我提供了 客户id=“3b54c59c-2602-4100-b4e5-XXXXXXXXXX”(我认为这是azure门户上的应用程序id) 租户id=“b3e3ea8a-1379-4a80-acdd-XXXXXXXXXX”(目录id) 用户名(azure门户登录电子邮件) 密码(azure门户登录密码) Offic
{"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)
有关详细信息,您可以参考。我可以使用简单的REST API,而不是使用他们提供的JAVA API。