Link request context with host principal (fixes #1294).