add static authorize method