WSO2自我注册确认电子邮件

WSO2自我注册确认电子邮件,wso2,wso2is,Wso2,Wso2is,我有一个客户端使用UserInformationRecoveryServiceStub注册新用户。在我将WSO2配置为发送确认电子邮件之前,此功能一直有效 在identity-mgt.properties中,我设置: Identity.Listener.Enable=true Notification.Sending.Internally.Managed=true Authentication.Policy.Account.Lock.On.Creation=true Notification.E

我有一个客户端使用UserInformationRecoveryServiceStub注册新用户。在我将WSO2配置为发送确认电子邮件之前,此功能一直有效

在identity-mgt.properties中,我设置:

Identity.Listener.Enable=true
Notification.Sending.Internally.Managed=true
Authentication.Policy.Account.Lock.On.Creation=true
Notification.Expire.Time=7200
Notification.Sending.Enable=true 
Authentication.Policy.Enable=true 
现在,当客户端调用UserInformationRecoveryServiceStub.registerUser时,用户被添加到用户存储中,但不发送电子邮件,客户端收到以下异常:

SEVERE: null
org.wso2.carbon.identity.mgt.stub.UserInformationRecoveryServiceIdentityMgtServiceExceptionE(uxception: UserInformationRecoveryServiceIdentityMgtServiceExceptionException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at java.lang.Class.newInstance(Class.java:433)
at org.wso2.carbon.identity.mgt.stub.UserInformationRecoveryServiceStub.registerUser(UserInformationRecoveryServiceStub.java:685)
at com.ijet.wso2is.client.UserInformationRecoveryServiceClient.registerBjnUser(UserInformationRecoveryServiceClient.java:191)
at com.ijet.wso2is.client.UserInformationRecoveryServiceClient.main(UserInformationRecoveryServiceClient.java:69)
以下是感兴趣的客户代码

UserIdentityClaimDTO claim = new UserIdentityClaimDTO();
    claim.setClaimUri("http://wso2.org/claims/emailaddress");
    claim.setClaimValue("testee@xyz.com");
    claimList.add(claim);

    claim = new UserIdentityClaimDTO();
    claim.setClaimUri("http://wso2.org/claims/givenname");
    claim.setClaimValue("Testee");
    claimList.add(claim);

    claim = new UserIdentityClaimDTO();
    claim.setClaimUri("http://wso2.org/claims/lastname");
    claim.setClaimValue("Tester");
    claimList.add(claim);

    serviceStub.registerUser(TEST_USERNAME, 
            "Password#1", 
            claimList.toArray(new UserIdentityClaimDTO[claimList.size()]), 
            null, 
            null);

你在用IS 5.0.0吗?我看了一遍代码,似乎发送电子邮件被注释掉了。简单地用评论是行不通的。 但是,如果您注册用户而不指定密码,这对我来说是有效的。在这种情况下,服务器运行不同部分的代码,真正发送电子邮件