LTM virtual server open only to user authenticated over APM

Here’s the use case, after user authenticated on https://apm.test.com with APM, allow user to access https://apm.test.com:5000..

Any thought?

Use an APM access profile with profile scope and assign it to both virtual servers.