Add license to request object in middleware.