Search code examples
httpoauthmuleanypoint-studio

Retrieve access from Request Connector in Mule Anypoint Studio


I want to store the access token value from request connector separately in variable. can some one help on it. using Oauth module 1.1

enter image description here


Solution

  • You can use the <oauth:retrieve-access-token> operation to get the token from the the token manager.

    Example:

    <oauth:retrieve-access-token tokenManager="tokenManagerConfig" target="accessToken"/>
    

    I recommend to upgrade the module to the latest version available to get bug fixes. 1.1.0 is an old version by now.