📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 7.2-8.9

简而言之,当 Elasticsearch 无法处理来自 OpenID Connect 提供者的响应时,会出现此错误。这可能是由于配置设置不正确、网络问题或 OpenID 提供者存在问题导致的。要解决此问题,请确保 Elasticsearch 中的 OpenID Connect 设置正确。检查到 OpenID 提供者的网络连接。同时,验证 OpenID 提供者运行正常并返回有效响应。如果问题仍然存在,考虑启用调试日志以进行进一步调查。

日志上下文 #

日志 “Failed to consume the OpenID connect response.” 的类名是 OpenIdConnectAuthenticator.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入了解上下文的人参考:

}
    } catch (ElasticsearchSecurityException e) {
        // Don't wrap in a new ElasticsearchSecurityException
        listener.onFailure(e);
    } catch (Exception e) {
        listener.onFailure(new ElasticsearchSecurityException("Failed to consume the OpenID connect response. ", e));
    }
    }  /**
     * Collects all the user claims we can get for the authenticated user. This happens in two steps: