}
@RequestMapping(value="/authorizationUrl", method=RequestMethod.GET)
public @ResponseBody Map<String, Object> getAuthUrl(
@RequestParam String target, WebRequest request) {
Site site = (Site) request.getAttribute(AttributeKeys.SITE_KEY, WebRequest.SCOPE_REQUEST);
String callback = site.getHomeURL()+ "/oauth/callback/" + target;
String beanId = target + ApiService.class.getSimpleName();
ApiService apiService = appContext.getBean(beanId, ApiService.class);
OAuthService oAuthService = apiService.getOAuthService(callback);
Token requestToken = oAuthService.getRequestToken();
oAuthServices.put(requestToken, oAuthService);