set principle on request context