google-nomulus/java/google/registry/ui/server
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
..
registrar Clean up registrar console login flow 2018-10-03 11:57:34 -04:00
BUILD Clean up third_party imports in BUILD files 2018-07-14 01:11:51 -04:00
package-info.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
RegistrarFormFields.java Redirect Registrar.referralUrl UI actions to url field 2018-05-17 21:52:35 -04:00
SoyTemplateUtils.java Remove references to SoySyntaxException 2018-02-20 15:37:48 -05:00
StateCode.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00