mulesoft/mule-devkit — Issue #67: Saving access tokens with OAuth2 doesn't work
Author: dandiep
Created: 2012-01-09 04:33:33+00:00
State: open

The devkit generates the following code for saving my oauth access token:

if (oauthSaveAccessToken!= null) {
try {
oauthSaveAccessToken.saveAccessToken(accessToken, null);

However, this will force the following exception to be thrown:

java.lang.Throwable
at org.mule.DefaultMuleMessage.setProperty(DefaultMuleMessage.java:448)
at org.mule.DefaultMuleMessage.setInvocationProperty(DefaultMuleMessage.java:418)
at org.mule.module.google.config.DefaultSaveAccessTokenCallback.saveAccessToken(DefaultSaveAccessTokenCallback.java:53)
at org.mule.module.google.config.GoogleContactsConnectorOAuth2Adapter.fetchAccessToken(GoogleContactsConnectorOAuth2Adapter.java:265)

Making it impossible to save access tokens.