Add administrator privileges to RDAP

RDAP filters some contact data when the request is not authenticated as coming from a user associated with the registrar owning the contact. This CL adds an exception for admin users, which for the App Engine Users API are defined as App Engine project viewers. This means that the registry team will always get all information when logged in. This will also be useful when building tools that use RDAP output.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=168293820
This commit is contained in:
mountford 2017-09-11 15:18:43 -07:00 committed by jianglai
parent 211d89695a
commit 5b444d93fb
12 changed files with 152 additions and 40 deletions

View file

@ -94,7 +94,7 @@ public class RdapEntityAction extends RdapActionBase {
rdapWhoisServer,
now,
OutputDataType.FULL,
getLoggedInClientId());
getAuthorization());
}
}
Long ianaIdentifier = Longs.tryParse(pathSearchString);