Programmatically check whether Agent Authorisation is Done or Due