EnMePlaceHolderConfigurer.getProperty("google.register.client.secret"),
EnMePlaceHolderConfigurer.getProperty("google.accesToken"),
EnMePlaceHolderConfigurer.getProperty("google.authorizeURl"),
SocialProvider.GOOGLE_BUZZ,
EnMePlaceHolderConfigurer.getProperty("google.register.client.id"));
auth2RequestProvider = new OAuth2RequestFlow(auth2Parameters);
auth2RequestProvider.DEFAULT_CALLBACK_PATH = POST_REGISTER_REDIRECT;
url.append(auth2RequestProvider.buildOAuth2AuthorizeUrl(
EnMePlaceHolderConfigurer.getProperty("google.buzz.scope"), httpRequest, false));
url.append("&state=");
url.append(providerEnum.toString());
} else if (SocialProvider.FACEBOOK.equals(providerEnum)) {
OAuth2Parameters auth2Parameters = new OAuth2Parameters(
EnMePlaceHolderConfigurer.getProperty("facebook.api.key"),
EnMePlaceHolderConfigurer.getProperty("facebook.api.secret"),
EnMePlaceHolderConfigurer.getProperty("facebook.oauth.accesToken"),
EnMePlaceHolderConfigurer.getProperty("facebook.oauth.authorize"),
SocialProvider.FACEBOOK,
EnMePlaceHolderConfigurer.getProperty("facebook.api.id"));
auth2RequestProvider = new OAuth2RequestFlow(auth2Parameters);
auth2RequestProvider.DEFAULT_CALLBACK_PATH = POST_REGISTER_REDIRECT;
url.append(auth2RequestProvider.buildOAuth2AuthorizeUrl(
SocialUtils.FACEBOOK_SCOPE, httpRequest, providerEnum == SocialProvider.FACEBOOK ? true : false));
} else {
url.append("404");