Fix nomulus tool AppEngineConnection behavior

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=136471276
This commit is contained in:
nickfelt 2016-10-18 07:40:30 -07:00 committed by Ben McIlwain
parent afa4d66601
commit b1beefab4c
3 changed files with 21 additions and 21 deletions

View file

@ -19,11 +19,14 @@ package google.registry.tools;
class UserIdProvider {
static String getTestUserId() {
return "test@example.com";
return "test@example.com"; // Predefined default user for the development server.
}
/** Pick up the username from an appropriate source. */
static String getProdUserId() {
return System.getenv("USER") + "@" + System.getenv("HOSTNAME");
// TODO(b/28219927): fix tool authentication to use actual user credentials.
// For the time being, use the empty string so that for testing, requests without credentials
// can still pass the server-side XSRF token check (which will represent no user as "").
return "";
}
}