A sample AO application is available from the IMS library IMS.ADFSSMPL, member name DFSAOPGM.
IMS.ADFSSMPL