wso2is - WSO2 Self Registration Confirmation Email -
i have client using userinformationrecoveryservicestub register new users. works until configure wso2 send confirmation email.
in identity-mgt.properties set:
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
now when client call userinformationrecoveryservicestub.registeruser(), user added user store no email sent , client receives following exception:
severe: null org.wso2.carbon.identity.mgt.stub.userinformationrecoveryserviceidentitymgtserviceexceptione(uxception: userinformationrecoveryserviceidentitymgtserviceexceptionexception @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:62) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45) @ java.lang.reflect.constructor.newinstance(constructor.java:408) @ java.lang.class.newinstance(class.java:433) @ org.wso2.carbon.identity.mgt.stub.userinformationrecoveryservicestub.registeruser(userinformationrecoveryservicestub.java:685) @ com.ijet.wso2is.client.userinformationrecoveryserviceclient.registerbjnuser(userinformationrecoveryserviceclient.java:191) @ com.ijet.wso2is.client.userinformationrecoveryserviceclient.main(userinformationrecoveryserviceclient.java:69)
the following client code of interest.
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);
are working on 5.0.0? went through code , seems sending of emails commented out. commenting in didn't work. worked me, if register user without specifying password. in use case server runs through different part of code sends out emails.
Comments
Post a Comment