google-nomulus/javatests/google/registry/rdap
guyben 84a0ace2ea Clean up registrar console login flow
Replaced the plethora of inter winding access functions and inputs in SessionUtils with just 2 functions, that both accept the same type for the user (AuthResult):

guessRegistrarForUser: given an AuthResult, finds a registrar that they have access to. If none is found - a ForbiddenException is thrown.

getRegistrarForUser[Cached]: (maybe should be called getRegistrarOnBehalfOfUser?) given an AuthResult and a clientId, loads and returns the registrar ONLY IF the user has access to it. Otherwise throws a ForbiddenException.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=214630657
2018-10-03 11:57:34 -04:00
..
testdata RDAP: Add registrar entities to nameserver query results 2018-09-08 00:08:29 -04:00
BUILD Clean up third_party imports in BUILD files 2018-07-14 01:11:51 -04:00
RdapActionBaseTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
RdapDomainActionTest.java Clean up registrar console login flow 2018-10-03 11:57:34 -04:00
RdapDomainSearchActionTest.java Clean up registrar console login flow 2018-10-03 11:57:34 -04:00
RdapEntityActionTest.java Clean up registrar console login flow 2018-10-03 11:57:34 -04:00
RdapEntitySearchActionTest.java Clean up registrar console login flow 2018-10-03 11:57:34 -04:00
RdapHelpActionTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
RdapJsonFormatterTest.java RDAP: Add registrar entities to nameserver query results 2018-09-08 00:08:29 -04:00
RdapMetricsTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
RdapNameserverActionTest.java Clean up registrar console login flow 2018-10-03 11:57:34 -04:00
RdapNameserverSearchActionTest.java Clean up registrar console login flow 2018-10-03 11:57:34 -04:00
RdapSearchActionTestCase.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
RdapSearchPatternTest.java Remove unnecessary "throws" declarations 2018-06-18 18:17:56 -04:00
RdapTestHelper.java Move RDAP boilerplate from remarks to notices 2018-05-05 23:47:47 -04:00