Azure active directory AADSTS90019:在请求中或任何提供的凭据中均未找到租户标识信息

Azure active directory AADSTS90019:在请求中或任何提供的凭据中均未找到租户标识信息,azure-active-directory,Azure Active Directory,嗨,我想实现Office365 SSO登录。 我已经创建了一个帐户,并遵循以下文档: 我已经得到了代码,现在想实现“使用授权代码请求访问令牌” 但我得到一个错误:AADSTS90019:在请求中或任何提供的凭据中均未找到租户标识信息。 以下是我通话的详细记录: http-bio-8080-exec-10 29/06/2015 14:45:37,496 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 >> "POST /c

嗨,我想实现Office365 SSO登录。 我已经创建了一个帐户,并遵循以下文档:

我已经得到了代码,现在想实现“使用授权代码请求访问令牌”

但我得到一个错误:AADSTS90019:在请求中或任何提供的凭据中均未找到租户标识信息。

以下是我通话的详细记录:

http-bio-8080-exec-10 29/06/2015 14:45:37,496 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 >> "POST /common/oauth2/token HTTP/1.1[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,496 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 >> "Content-Length: 810[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,497 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 >> "Content-Type: application/x-www-form-urlencoded[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,497 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 >> "Host: login.microsoftonline.com[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,498 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 >> "Connection: Keep-Alive[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,499 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 >> "User-Agent: Apache-HttpClient/4.3.5 (java 1.5)[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,499 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 >> "Accept-Encoding: gzip,deflate[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,500 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 >> "[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,501 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 >> "client_id=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2FXXXXXXXXX%2FREST%2FUser%2Foffice&client_secret=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&code=XXXXXXXXXXXXXXXXXXX&grant_type=authorization_code"
http-bio-8080-exec-10 29/06/2015 14:45:37,570 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 << "H"
http-bio-8080-exec-10 29/06/2015 14:45:37,571 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 << "TTP/1.1 400 Bad Request[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,572 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 << "Cache-Control: no-cache, no-store[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,572 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 << "Pragma: no-cache[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,573 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 << "Content-Type: application/json; charset=utf-8[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,573 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 << "Expires: -1[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,574 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 << "Server: Microsoft-IIS/8.5[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,575 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 << "x-ms-request-id: c7702631-895c-4c6c-bad1-691ced9259f5[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,575 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 << "x-ms-gateway-service-instanceid: ESTSFE_IN_3[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,576 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 << "X-Content-Type-Options: nosniff[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,576 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 << "Strict-Transport-Security: max-age=31536000; includeSubDomains[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,577 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 << "P3P: CP="DSP CUR OTPi IND OTRi ONL FIN"[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,578 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 << "Set-Cookie: flight-uxoptin=true; path=/; secure; HttpOnly[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,578 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 << "Set-Cookie: x-ms-gateway-slice=productiona; path=/; secure; HttpOnly[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,579 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 << "Set-Cookie: stsservicecookie=ests; path=/; secure; HttpOnly[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,580 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 << "X-Powered-By: ASP.NET[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,580 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 << "Date: Mon, 29 Jun 2015 12:45:48 GMT[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,581 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 << "Content-Length: 501[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,581 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 << "[\r][\n]"
http-bio-8080-exec-10 29/06/2015 14:45:37,582 | DEBUG | org.apache.http.wire | wire | http-outgoing-3 << "{"error":"invalid_request","error_description":"AADSTS90019: No tenant-identifying information found in either the request or implied by any provided credentials.\r\nTrace ID: c7702631-895c-4c6c-bad1-691ced9259f5\r\nCorrelation ID: bd641f9d-9982-4808-b7ba-95d3dc0ba8d9\r\nTimestamp: 2015-06-29 12:45:49Z","error_codes":[90019],"timestamp":"2015-06-29 12:45:49Z","trace_id":"c7702631-895c-4c6c-bad1-691ced9259f5","correlation_id":"bd641f9d-9982-4808-b7ba-95d3dc0ba8d9","submit_url":null,"context":null}"
http-bio-8080-exec-10 29/06/2015 14:45:37496 | DEBUG | org.apache.http.wire | wire | http-outing-3>“POST/common/oauth2/token http/1.1[\r][\n]”
http-bio-8080-exec-10 29/06/2015 14:45:37496 | DEBUG | org.apache.http.wire | wire | http-outing-3>>“内容长度:810[\r][\n]”
http-bio-8080-exec-10 29/06/2015 14:45:37497 | DEBUG | org.apache.http.wire | wire | http-outing-3>>“内容类型:应用程序/x-www-form-urlencoded[\r][\n]”
http-bio-8080-exec-10 29/06/2015 14:45:37497 | DEBUG | org.apache.http.wire | wire | http-outing-3>>“主机:login.microsoftonline.com[\r][\n]”
http-bio-8080-exec-10 29/06/2015 14:45:37498 | DEBUG | org.apache.http.wire | wire | http-outing-3>>“连接:保持活动[\r][\n]”
http-bio-8080-exec-10 29/06/2015 14:45:37499 | DEBUG | org.apache.http.wire | wire | http-outing-3>>“用户代理:apache HttpClient/4.3.5(java 1.5)[\r][\n]”
http-bio-8080-exec-10 29/06/2015 14:45:37499 | DEBUG | org.apache.http.wire | wire | http-outing-3>“接受编码:gzip,deflate[\r][\n]”
http-bio-8080-exec-10 29/06/2015 14:45:37500 | DEBUG | org.apache.http.wire | wire | http-outing-3>>“[\r][\n]”
http-bio-8080-exec-10 29/06/2015 14:45:37501 | DEBUG | org.apache.http.wire | wire | http-outing-3>“客户端id=XXXXXXXXXXXX-XXXX-XXXX-xxxxxxxxxxxxxxxxxxxx&重定向(uri=http%3A%2F%2localhost%3A8080%2fxxxxxxxxxxxxxxxxx%2fsrest%2FUser%2Foffice和客户端(机密=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&代码=授权类型=授权码”

http-bio-8080-exec-10 29/06/2015 14:45:37570 | DEBUG | org.apache.http.wire | wire | http-outing-3您案例中使用的帐户是Microsoft帐户,而不是组织帐户/AAD帐户。不幸的是,Microsoft帐户不能在公共端点上工作。如果Microsoft帐户是Azure AD租户中的来宾,那么您可以将该租户名称放在授权端点中,以代替“common”,这样应该可以工作。显然,你必须提前知道你想要的房客


使用组织帐户时,您可能会遇到类似问题。如果组织帐户是另一个租户或多个租户中的来宾,则必须指定您希望令牌由其颁发的特定租户。

尝试清除与ADAL相关的Cookie/本地存储


根据:

这有变化吗?根据这个()的说法,Microsoft帐户在公共端点上工作,所以我很困惑