首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用WSO2授权时,带有WSO2的KeyManager API是KeyManager- NPE。

使用WSO2授权时,带有WSO2的KeyManager API是KeyManager- NPE。
EN

Stack Overflow用户
提问于 2018-03-27 09:02:42
回答 1查看 180关注 0票数 0

拥有WSO2 API管理器2.1.0和WSO2是5.3.0km(带有预先打包的密钥管理器),我将密钥管理器设置为在文档中描述

其主要目的是与其他联邦国内流离失所者对用户进行身份验证和授权,并添加一些授权功能。我的假设是,使用WSO2IS进行高级化的用户将收到对定义的应用程序和API有效的OAuth令牌。

到目前为止,所有的本地主机都是偏移1,我创建了一个API,一个应用程序,可以从API中使用。

当试图通过WSO2授权客户端时,使用的是代码grant_type授权:

代码语言:javascript
复制
https://localhost:9444/oauth2/authorize?response_type=code&client_id=KJTbkbFmcDvslo2fjhzfQkaBH3Ea&redirect_uri=http%3A//localhost%3A8080/test2/callback

我被要求获得全权证书和授权(看起来不错),然后我收到了一个例外:

代码语言:javascript
复制
[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实现调用的,还是导致此异常的潜在原因?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-03-27 09:29:02

这已经在https://wso2.org/jira/browse/IDENTITY-5581中得到了报道。

您可以更新WSO2为5.3.0来解决这个问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49508598

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档