我在 Linux 计算机上使用 wso2 独立版,我已更改 SSL 配置以使用自己的证书。我遵循了本指南,
https://docs.wso2.com/display/ADMIN44x/Creating+New+Keystores
现在我遇到了一些问题,当我在商店>应用程序>沙箱 key 或生产 key 中重新生成 token 时,它会给出错误,
Token revoke failed : HTTP error code : 500
在日志中,
[2017-09-20 06:58:56,114] WARN - EndpointContext Endpoint : AnonymousEndpoint with address https://{uri.var.hostname}:{uri.var.portnum}/oauth2/revoke will be marked SUSPENDED as it failed
[2017-09-20 06:58:56,114] WARN - EndpointContext Suspending endpoint : AnonymousEndpoint with address https://{uri.var.hostname}:{uri.var.portnum}/oauth2/revoke - last suspend duration was : 30000ms and current suspend duration is : 30000ms - Next retry after : Wed Sep 20 06:59:26 UTC 2017
[2017-09-20 06:58:56,114] INFO - LogMediator STATUS = Executing token 'fault' sequence, ERROR_CODE = 101500, ERROR_MESSAGE = Error in Sender
[2017-09-20 06:58:56,115] INFO - HandlerUtils Massage Info: Transaction id=5857679204959341105735016 Message direction=OUT Server name=gitcapp.com Timestamp=1505890736115 Service name=__SynapseService Operation Name=mediate
[2017-09-20 06:58:56,146] ERROR - subscription-add:jag java.lang.RuntimeException: Token revoke failed : HTTP error code : 500
但是其余部分工作正常,HTTPS 端点工作正常。
有人可以帮我吗?
提前致谢。
最佳答案
确保您已配置<APIKeyValidator>
api-manager.xml
中的部分正确地,就像这样。
<APIKeyValidator>
<!-- Server URL of the API key manager -->
<ServerURL>https://your.new hostname.com:9443/services/</ServerURL>
关于商店中的 WSO2 token 再生问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46316515/