Q:

Retrieving ExactTarget user from Journey Builder

We've built an app for HubExchange and retrieve the user that has authenticated with the app in the decoded JWT payload. This is all fine.
However, with a Custom Activity, Journey Builder uses the Endpoint URL that has been defined in AppCenter (for the Custom Activity) and doesn't use JWT so we don't know which ExactTarget user is interacting with Journey Builder.
Is there a method that we can use to get the current user from Journey Builder?

A:

If you look at the Postmonger events, "requestTokens" and "requestedTokens" you should be able to pull out this context information.
connection.on('requestedTokens', function(tokens) { ... });

