cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jordi <>
Subject Re: [jira] [Resolved] (CXF-4051) Custom OAuth scopes are not supported
Date Fri, 13 Apr 2012 16:27:58 GMT
Hi Sergey,
thanks a lot for your answer, but now I've got a new doubt... :-(

To build the authorization header I use the following piece of code:

	WebClient wc = WebClient.create("http://localhost:8080/oauth/initiate");

	Consumer consumer = new Consumer(aKey, aSecretKey);
	URI callback = new URI("http://localhost:8080/dummyclient/callback");
	// CXF extra parameters
	Map<String, String> extra = new HashMap<String, String>();
	extra.put("x_oauth_uri", "users/list");
	extra.put("x_oauth_scope", "read_profile");
	extra.put("state", "intercepted");
	Token rt = OAuthClientUtils.getRequestToken(wc, consumer, callback, extra);

But if I try to run it without adding the Google library I received the

Exception in thread "main" java.lang.NoClassDefFoundError:

So, how can I avoid that?

Thanks in advance,

View this message in context:
Sent from the cxf-issues mailing list archive at

View raw message