the target instance have to have configured application esp. callback to the acting instance
on action instance the target have to be added as provider via /oauth/admin.v_s_p, note the name used have to be same as for name in function registration.
then the OAuth should work