拥有WSO2 API管理器2.1.0和WSO2是5.3.0km(带有预先打包的密钥管理器),我将密钥管理器设置为在文档中描述。
其主要目的是与其他联邦国内流离失所者对用户进行身份验证和授权,并添加一些授权功能。我的假设是,使用WSO2IS进行高级化的用户将收到对定义的应用程序和API有效的OAuth令牌。
到目前为止,所有的本地主机都是偏移1,我创建了一个API,一个应用程序,可以从API中使用。
当试图通过WSO2授权客户端时,使用的是代码grant_type授权:
https://localhost:9444/oauth2/authorize?response_type=code&client_id=KJTbkbFmcDvslo2fjhzfQkaBH3Ea&redirect_uri=http%3A//localhost%3A8080/test2/callback我被要求获得全权证书和授权(看起来不错),然后我收到了一个例外:
[2018-03-27 10:43:51,822] ERROR {org.apache.catalina.core.StandardWrapperValve} - Servlet.service() for servlet [OAuth2Endpoints] in context with path [/oauth2] threw exception
java.lang.RuntimeException: org.apache.cxf.interceptor.Fault
at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:116)
...
Caused by: java.lang.NullPointerException
at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEndpoint.authorize(OAuth2AuthzEndpoint.java:251)
at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEndpoint.sendRequestToFramework(OAuth2AuthzEndpoint.java:1163)
at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEndpoint.authorize(OAuth2AuthzEndpoint.java:135)
at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEndpoint.authorizePost(OAuth2AuthzEndpoint.java:574)但是,我假设我错配置了某个端点--知道哪个服务是由OAuth2AuthzEndpoint实现调用的,还是导致此异常的潜在原因?
发布于 2018-03-27 09:29:02
这已经在https://wso2.org/jira/browse/IDENTITY-5581中得到了报道。
您可以更新WSO2为5.3.0来解决这个问题。
https://stackoverflow.com/questions/49508598
复制相似问题