Implement app authorisation routine.