*/
public AuthProvider connect(final AccessGrant accessGrant)
throws SocialAuthConfigurationException,
AccessTokenExpireException, SocialAuthException {
if (accessGrant.getProviderId() == null || accessGrant.getKey() == null) {
throw new SocialAuthException("access grant is not valid");
}
LOG.debug("Connecting provider : " + accessGrant.getProviderId()
+ ", from given access grant");
AuthProvider provider = getProviderInstance(accessGrant.getProviderId());
provider.setAccessGrant(accessGrant);