在WSO2 Identity Server上调用用户管理服务

用户名

我正在看两个调用用户管理Web服务的WSO2客户端示例。第一个是简单的客户端,第二个是Web应用程序。

第一个客户端设置系统SSL属性,然后实例化WSUserStoreManager对象。

第二个Web应用程序根本不设置SSL属性,而是实例化RemoteUserStoreManagerServiceStub。

有人可以解释为什么这些差异吗?当有两个类似的服务(常规服务和“远程”服务)可用时,该呼叫什么服务?调用https端点时是否总是需要设置SSL属性?谢谢。

阿塞拉

如果正在调用HTTPS端点,则需要设置SSL信任存储库属性来信任服务器。但是它在客户端的控制之下,如果客户端需要,它可以信任它,否则,它可以忽略。如果要忽略,则要覆盖Java的默认TrustManager。但是,通常Java具有一个名为“ cacerts”的信任存储文件,其中包含所有受信任的CA证书。但是WSO2IS服务器的证书是一个自签名证书,java无法信任它。因此,如果需要,您可以将证书导入到“ cacerts文件”中。我不确定为什么客户端和Web应用程序中会有两个不同。但是,如果您调用的是HTTPS,则必须创建信任关系。请检查Web应用程序有时,它可能会忽略信任。由于网络应用是在应用服务器中运行的,

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

WSO2 Identity Server升级

用于会话管理的 WSO2 Identity Server 5.0.0 Api

WSO2 Identity Server的用户和租户

使用WSO2 Identity Server和WSO2 API Manager保护后端

使用WSO2 Identity Server 5.1进行单点登录

使用WSO2 Identity Server的SAML2.0 SSO?

使用Spring Security + WSO2 Identity Server的OAuth 2.0

WSO2 Identity Server中的SAML请求-响应处理

WSO2 API Manager使用Identity Server存储访问

基于SAML / XACML的WSO2 Identity Server访问控制

集成bonita和wso2 Identity Server

wso2 Identity Server-无法删除租户

WSO2 Identity Server在用户存储,策略管理等中看不到选项

使用WSO2 Identity Server管理外部自定义权限吗?

WSO2 Identity Server用户身份验证的HTTP请求

有什么方法可以在WSO2 Identity Server中加密用户名?

WSO2 Identity Server将用户设置为“非活动”

WSO2 Identity Server 5.1.0在SAML响应中未返回用户声明

wso2 Identity Server 5.7.0 Service Provider 如何设置用户角色?

在wso2 Identity Server中使用示例代码创建用户

WSO2 Identity Server中的SCIM服务提供商

302在WSO2 Identity Server中创建服务提供程序时出错

wso2 Identity Server-基于角色的ACL,用于管理用户对Web应用程序的访问

WSO2 Identity Server 5.9.0 oAuth2配置类型

WSO2 sh wso2server.sh -Dmigrate -Dcomponent=identity 没有运行迁移脚本

WSO2 Identity Server与ADFS Server集成时抛出NullpointerException

为WSO2 Identity Server部署自定义密码策略文件

WSO2 Identity Server未返回带有OAuth / OpenID的请求的声明

Spring SAML与WSO2 Identity Server集成,未重新协调SAML消息ID