Run onQuery() before onSecured().