OIDC Liberty 8.5.5.8 - OAuth20InternalException.getEncodedTraceArg中的NPE

时间:2016-03-14 09:52:58

标签: websphere-liberty openid-connect

我正在使用WebSphere Liberty 8.5.5.8(wlp-1.0.11.cl50820151201-1942),我正在尝试设置OpenID-Connect。我的大多数基本样本都在工作,但是当我尝试实现" Implicit Flow"使用纯JavaScript客户端(我使用来自https://github.com/IdentityServer/IdentityServer3.Samples的客户端示例),我在同意书后的POST中收到了NPE:

[ERROR   ] SRVE0777E: Exception thrown by application class
com.ibm.oauth.core.api.error.oauth20.OAuth20InternalException.getEncodedTraceArguments:76
java.lang.NullPointerException at
com.ibm.oauth.core.api.error.oauth20.OAuth20InternalException.getEncodedTraceArguments(OAuth20InternalException.java:76)
at [internal classes]

是否有人成功使用WLP并设置"隐含流量/授予"。

IBM的任何人都能够做出诊断吗?内部班级的NPE不是很有帮助。

2 个答案:

答案 0 :(得分:0)

您是否检查过任何FFDC日志,以查看在NPE之前是否记录了任何错误。 此链接还指向一个关于您需要添加到隐式流请求中的文档的好文档。

https://www.ibm.com/support/knowledgecenter/SSD28V_8.5.5/com.ibm.websphere.wlp.core.doc/ae/twlp_oidc_auth_endpoint.html?lang=en

正如您在文档中看到的那样,自由OIDC不支持" id_token"在response_type中。使用隐式流时,必须始终使用" id_token token" ...所以请确保您的请求中指定了... response_type = id_token token& scope = openid& client_id = ...等。

如果上述信息无效,请提供您的OpenID Connect提供商配置以及您要发送的示例请求。

答案 1 :(得分:0)