google-nomulus/javatests/google/registry
guyben 2d4eeae26c Fix admin access to registryAdminClientId when they aren't associated with it
An admin that isn't associated with any clientId, will default to the
registryAdminClientId.

However, if we set the registryAdminClientId as the session's
CLIENT_ID_ATTRIBUTE, the next time we access the server we have a client-id
attribute we aren't associated with - which returns a "403 Registrar Console
access revoked" error (the assumption is - we were associated with it before
but aren't anymore)

To fix this - we just add all admins as "hasAccessTo" registryAdminClientId, even if it's not in the contacts. This will let admins stay on the admin registrar, without affecting where they log-in initially if they are also contacts in different registrars.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=200402856
2018-06-18 18:04:56 -04:00
..
backup Migrate to flogger (red) 2018-05-30 12:18:54 -04:00
batch Make async flow logic handle missing client transaction IDs 2018-05-05 23:21:55 -04:00
beam Move invoice generation to billing bucket and improve emailing 2018-01-19 14:34:14 -05:00
bigquery Automatically refactor more exception testing to use new JUnit rules 2017-12-27 10:42:36 -05:00
builddefs Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
config Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
cron Batch NORDN pull queue task deletions 2018-05-17 21:52:35 -04:00
dns Consolidate all Set parameter parsing 2018-06-06 15:04:02 -04:00
export Remove deprecated PublishDetailReportAction 2018-06-06 14:59:30 -04:00
flows Add proper flagging for start-date sunrise billing 2018-06-18 17:59:07 -04:00
groups Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
keyring Migrate to Flogger (yellow) 2018-05-30 12:18:54 -04:00
mapreduce/inputs Remove the JVM flags -XX:PermSize and -XX:MaxPermSize 2018-03-19 18:25:04 -04:00
model Migrate to Flogger (green) 2018-05-30 12:18:54 -04:00
module Add a new check API that does not wrap the domain check EPP flow 2018-06-06 15:05:30 -04:00
monitoring/whitebox Add metrics for the new Check API 2018-06-18 17:44:04 -04:00
pricing Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
proxy Enforce no logging in production environment 2018-06-06 15:10:15 -04:00
rdap Shard the RDAP tests 2018-06-18 17:47:15 -04:00
rde Migrate to Flogger (green) 2018-05-30 12:18:54 -04:00
reporting Enhance transfer logic for transaction reporting 2018-06-06 15:19:01 -04:00
request Add MOE equivalency for 2018-04-23 sync 2018-05-17 21:52:35 -04:00
security Remove more unused Truth8.assertThat() static imports in tests 2017-11-07 17:22:56 -05:00
server Migrate to Flogger (green) 2018-05-30 12:18:54 -04:00
storage/drive Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
testing Add a nomulus renew_domain command 2018-06-06 15:16:09 -04:00
tldconfig/idn Merge JUnitBackport's expectThrows into assertThrows 2018-03-06 18:56:15 -05:00
tmch Batch NORDN pull queue task deletions 2018-05-17 21:52:35 -04:00
tools Allow nomulus list_domains to query any number of TLDs 2018-06-18 17:48:44 -04:00
ui Fix admin access to registryAdminClientId when they aren't associated with it 2018-06-18 18:04:56 -04:00
util Upload to GCS before uploading to FTP 2018-06-18 17:39:36 -04:00
whois Use -ROID for contact roids in tests instead of -TLD 2018-06-18 18:00:34 -04:00
xjc Move tests to use TestDataHelper for reading resources 2018-04-10 16:43:17 -04:00
xml Add basic AllocationToken validation/redemption for domain creates 2018-01-19 14:28:26 -05:00