private String providerId;
private String successUrl;
private String accessTokenParameterName;
public OAuth2(final OAuthConfig config, final Map<String, String> endpoints) {
oauth = new OAuthConsumer(config);
this.endpoints = endpoints;
permission = Permission.DEFAULT;
providerId = config.getId();
accessTokenParameterName = Constants.ACCESS_TOKEN_PARAMETER_NAME;
}