SpriteLink/NIPAP — pull request #539 by plajjan (2014-07-25 15:41:15+00:00)
Title: Add user impersonation in CLI via env

This is one option of fixing #538. The other potential solution would use regular options (using optparse) instead of environment variables to accomplish the same thing.

This adds the capability to impersonate another user (setting username
and full_name) via the CLI. It accomplishes this by reading the
environment variables NIPAP_IMPERSONATE_USERNAME and
NIPAP_IMPERSONATE_FULL_NAME. Naturally it only works when a user it
trusted.