简体   繁体   English

使用ws02身份服务器的Java Web客户端示例

[英]Example of java web client Using ws02 identity server

I am looking for authentication and authorizing solution. 我正在寻找认证和授权解决方案。

I crossed by WS02. 我越过WS02。

Our web app clients implemented in Java and .net 我们的Java和.net网络应用客户端

I tried to look for an example of a Java web application which integrates with the WS02 identity server. 我试图寻找一个与WS02身份服务器集成的Java Web应用程序的示例。

Is it even possible? 可能吗? In case it is, are there any libraries I can download in order to integrate between our web client and the identity server? 如果是这样,我可以下载任何库以在我们的Web客户端和身份服务器之间进行集成吗?

thanks, ray. 谢谢,雷。

WSO2 Identity Server's APIs have been exposed as web service APIs. WSO2 Identity Server的API已作为Web服务API公开。 Basically to authenticate to the Identity Server, you can use "AuthenticationAdmin" web service. 基本上要向Identity Server进行身份验证,可以使用“ AuthenticationAdmin” Web服务。 Also there is a user management web service called "RemoteUserStoreManagerService" where WSO2 Identity Server's user store has been exposed via web service [1]. 另外,还有一个名为“ RemoteUserStoreManagerService”的用户管理Web服务,其中WSO2 Identity Server的用户存储已通过Web服务公开[1]。 For authorization, you can probably look for XACML. 对于授权,您可能可以寻找XACML。 XACML is the de-factor standard for it. XACML是它的分解标准。 WSO2 Identity Server exposes "EntitlementService" [2] as XACML authorization decision query point. WSO2 Identity Server将“ EntitlementService” [2]公开为XACML授权决策查询点。

If you want to call these web services, you need to write a typical web service client program. 如果要调用这些Web服务,则需要编写一个典型的Web服务客户端程序。 (You may need to authenticate to server using basic auth).These web services even can be tested using soap UI. (您可能需要使用基本身份验证向服务器进行身份验证)。甚至可以使用soap UI测试这些Web服务。 You can find java client program for "RemoteUserStoreManagerService" service from here [1]. 您可以从此处[1]找到“ RemoteUserStoreManagerService”服务的Java客户端程序。 If you are witting a java client, following [3] would be minim libraries that you needed. 如果您要使用Java客户端,则[3]以下是您需要的最小库。 But "Stub" jar file must be related with the service that you are invoking. 但是,“存根” jar文件必须与您要调用的服务相关。 You can look for the code and see what is happening there to get more understanding 您可以查找代码,看看那里发生了什么,从而获得更多的了解。

[1] https://github.com/soasecurity/soasecurity/tree/master/user-mgt/client/remote-user-400 [1] https://github.com/soasecurity/soasecurity/tree/master/user-mgt/client/remote-user-400

[2] http://xacmlinfo.org/2012/06/14/pep-client-for-wso2is-pdp/ [2] http://xacmlinfo.org/2012/06/14/pep-client-for-wso2is-pdp/

[3] https://svn.wso2.org/repos/wso2/people/asela/xacml/pap/4.2.X/lib/ [3] https://svn.wso2.org/repos/wso2/people/asela/xacml/pap/4.2.X/lib/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM