policy_testserver.py: Optionally resolve username.
commit13b7cfd2f10a06c3e161d81a1b90524d98805ffd
authormnissler <mnissler@chromium.org>
Tue, 30 Jun 2015 08:11:46 +0000 (30 01:11 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 30 Jun 2015 08:12:11 +0000 (30 08:12 +0000)
tree172e0c0192bf7c5c77c3315dabf62fc43fef2a76
parentf75a0c836e36701dcbfcd5d61c05909b0f8ad507
policy_testserver.py: Optionally resolve username.

This enables policy_testserver.py to resolve the user name from the
auth token provided by the client when making a registration call. The
server does this when a token_info_url parameter is specified in the
configuration file. Hard-configured user names continue to function in
the absence of the token info endpoint.

BUG=None
TEST=compiles and passes tests

Review URL: https://codereview.chromium.org/1210063003

Cr-Commit-Position: refs/heads/master@{#336739}
chrome/browser/policy/test/policy_testserver.py