use of org.wso2.carbon.identity.user.endpoint.dto.SelfRegistrationUserDTO in project identity-governance by wso2-extensions.
the class UtilsTest method buildSelfRegistrationUserDTO.
private SelfRegistrationUserDTO buildSelfRegistrationUserDTO() {
SelfRegistrationUserDTO userDTO = new SelfRegistrationUserDTO();
userDTO.setTenantDomain("testTenant");
userDTO.setUsername("testUser");
userDTO.setRealm("testRealm");
return userDTO;
}
use of org.wso2.carbon.identity.user.endpoint.dto.SelfRegistrationUserDTO in project identity-governance by wso2-extensions.
the class MeApiServiceImplTest method buildSelfRegistartion.
private SelfRegistrationUserDTO buildSelfRegistartion() {
SelfRegistrationUserDTO selfRegistrationUserDTO = new SelfRegistrationUserDTO();
selfRegistrationUserDTO.setUsername("TestUser");
selfRegistrationUserDTO.setRealm(null);
selfRegistrationUserDTO.setTenantDomain("TestTenantDomain");
selfRegistrationUserDTO.setPassword("TestPassword");
return selfRegistrationUserDTO;
}
use of org.wso2.carbon.identity.user.endpoint.dto.SelfRegistrationUserDTO in project identity-governance by wso2-extensions.
the class Utils method getUser.
public static User getUser(SelfRegistrationUserDTO userDTO) {
User user = new User();
user.setTenantDomain(userDTO.getTenantDomain());
user.setUserStoreDomain(userDTO.getRealm());
user.setUserName(userDTO.getUsername());
return user;
}
Aggregations