LOG.info("Given provider id :: " + id);
SocialAuthManager manager;
if (userSession.get("socialAuthManager") != null) {
manager = (SocialAuthManager) userSession.get("socialAuthManager");
if ("signout".equals(mode)) {
manager.disconnectProvider(id);
return "home";
}
} else {
InputStream in = SocialAuthenticationAction.class.getClassLoader()
.getResourceAsStream("oauth_consumer.properties");