Add authorize method