Added authorizeClient method