your switch config snippet is correct. are you using ClearPass ?
here is the technote that wrote that could help which covers the exact scenario.
------------------------------
If my post was useful accept solution and/or give kudos.
Any opinions expressed here are solely my own and not necessarily that of HPE or Aruba.
------------------------------
Original Message:
Sent: Nov 29, 2023 05:52 PM
From: Tony Gonçalves
Subject: Authenticate Aruba AP
Hello
Is there any possibility to authenticate a Aruba AP and provide trunk vlan to the port?
Using Aruba CX and mac auth.
I tried to apply the following role
port-access role AP
auth-mode device-mode
poe-priority critical
vlan trunk native 22
vlan trunk allowed 1,20-28
But the port is on failed status with the following output