WSO2 Identity Server - 在entitlementServiceClient.getDecision中出现“无效状态”错误

时间:2015-07-17 23:38:09

标签: wso2 identity wso2is xacml

使用userid&的访问权限时基于密码的权利,并使用类“entitlementServiceClient”,方法“getDecision”,程序始终收到错误:“无效状态”

此课程的使用是否缺少:
    org.wso2.carbon.identity.entitlement.ui.client.EntitlementServiceClient;

我的陈述是:

//initialize authentication admin stub
UnitTest1 remoteEntitlementClient = new UnitTest1();
//login using authentication admin stub providing valid credentials
remoteEntitlementClient.login(userid, password);
//initialize entitlement service stub with obtained authentication cookie
remoteEntitlementClient.initUnitTest1();
String decision = entitlementServiceClient.getDecision(myRequest);
System.out.println("\nXACML Decision is received : " + decision);

授权过程似乎工作正常,它会收到有效的登录确认和cookie(请参阅下面的日志)。

oc2615188332 entitlement]$ sh ./testit.sh
Jul 17, 2015 8:10:37 PM     org.apache.axiom.util.stax.dialect.StAXDialectDetector detectDialect
WARNING: Unable to determine dialect of the StAX implementation at    jar:file:/home/claudef/tmp/wso2/entitlement/lib/axiom_1.2.11.wso2v4.jar!/
The user admin logged in successfully.
The IdP authorization cookie is: JSESSIONID=CDEEA143EB95A5AABEB07F5A401633B4; Path=/; Secure=null; HttpOnly=null
XACML Decision is received : Invalid Status
Elapsed seconds decimal: 6.937248979
Elapsed seconds rounded: 6.937
Entitlement flow finished successfully

提前感谢您的支持和建议。 问候, 克劳德

0 个答案:

没有答案