use of org.orcid.pojo.ajaxForm.Client in project ORCID-Source by ORCID.
the class DeveloperToolsController method getEmptyClient.
@RequestMapping(value = "/client.json", method = RequestMethod.GET)
@ResponseBody
public Client getEmptyClient(HttpServletRequest request) {
Client emptyObject = new Client();
emptyObject.setClientSecret(Text.valueOf(StringUtils.EMPTY));
RedirectUri redirectUri = new RedirectUri();
redirectUri.setValue(new Text());
redirectUri.setType(Text.valueOf(RedirectUriType.SSO_AUTHENTICATION.value()));
List<RedirectUri> set = new ArrayList<RedirectUri>();
set.add(redirectUri);
emptyObject.setRedirectUris(set);
return emptyObject;
}
Aggregations