Add authorize method to example application