* @param event MuleEvent to be processed
* @throws MuleException
*/
protected final MuleEvent doProcess(MuleEvent event) throws Exception
{
OAuth1Adapter moduleObject = this.getAdapter();
Map<String, String> extraParameters = new HashMap<String, String>();
if (this.getState() != null)
{
extraParameters.put("state", this.toString(event, this.getState()));
}
moduleObject.setAccessTokenUrl(this.toString(event, this.getAccessTokenUrl()));
String location = moduleObject.authorize(extraParameters, requestTokenUrl, this.getAccessTokenUrl(),
this.getAuthorizationUrl(), this.getOauthCallback().getUrl());
this.notifyAuthorizeStart(event);
event.getMessage().setOutboundProperty(OAuthProperties.HTTP_STATUS, "302");