mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Fix nomulus tool AppEngineConnection behavior
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=136471276
This commit is contained in:
parent
afa4d66601
commit
b1beefab4c
3 changed files with 21 additions and 21 deletions
|
@ -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 "";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue