*/
public AccessGrant createAccessGrant(final String providerId,
final String authCode, final String redirectURL) throws Exception {
this.providerId = providerId;
if (socialAuthConfig == null) {
throw new SocialAuthConfigurationException(
"SocialAuth configuration is null.");
}
getAuthenticationUrl(providerId, redirectURL);
if (providersMap.get(providerId) != null) {
authProvider = providersMap.get(providerId);