Update server.authorize to support all entire function signature