在 WSO2 身份服务器中成功登录后无法获取用户信息 [英] Can't get user information after login successfully in WSO2 Identity server
问题描述
使用服务 URL (
我尝试发现主要错误是我无法使用以下代码创建 ConfixContext:
configCtx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
我还在以下链接中阅读了有关 ConfigContext 的信息,并尝试了此链接中的其他方法,但我无法创建 configContext.http://axis.apache.org/axis2/java/core/apidocs/org/apache/axis2/context/ConfigurationContextFactory.html
感谢您在这种情况下的帮助.谢谢
问题是你的运行时没有 org.wso2.carbon.user.api.UserStoreException
类.因此,您无法识别真正的异常.
现在,只需使用 Exception e
代替,看看是否可以记录真正的异常.
After login successfully into WSO IS with service URL (https://localhost:9443/services/")
I tried to get User Information as below :
try {
UserRealm realm = WSRealmBuilder.createWSRealm(serviceURL, authCookie, configCtx);
UserStoreManager storeManager = realm.getUserStoreManager();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
But I had exception relating to this as below image. I can't get any info.
I tried and found out that the main error is I can't create ConfixContext with the following code :
configCtx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
I also read about ConfigContext in the below link and tried with other methods in this link but I can't create configContext. http://axis.apache.org/axis2/java/core/apidocs/org/apache/axis2/context/ConfigurationContextFactory.html
I appreciate your help in this case. Thanks
The problem is your runtime doesnt have org.wso2.carbon.user.api.UserStoreException
class. Therefore you can't identify the real exception.
For now, just use Exception e
instead, and see if you can log the real exception.
这篇关于在 WSO2 身份服务器中成功登录后无法获取用户信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!