you can create a requesthandler (/filter) that performs certain actions before it calls /xas but what do you want to achieve?
Edit 1: take a look at the deeplink or SSO modules from the appstore.