modify authorize callback method to block