mirror of
https://github.com/google/nomulus
synced 2026-02-04 12:02:30 +00:00
Use AuthenticatedRegistrarAccessor in EppConsoleAction
EppConsoleAction still "manually" checks access by going over the RegistrarContacts. We need it to use AuthenticatedRegistrarAccessor just like every other part of the registrar console. We still need to remove the (now unneeded) login EPP sent by the console, but that's left for a followup CL. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=222404208
This commit is contained in:
@@ -16,6 +16,7 @@ package google.registry.ui.server.registrar;
|
||||
|
||||
|
||||
import static google.registry.request.RequestParameters.extractOptionalParameter;
|
||||
import static google.registry.request.RequestParameters.extractRequiredParameter;
|
||||
|
||||
import dagger.Module;
|
||||
import dagger.Provides;
|
||||
@@ -31,7 +32,13 @@ public final class RegistrarConsoleModule {
|
||||
|
||||
@Provides
|
||||
@Parameter(PARAM_CLIENT_ID)
|
||||
static Optional<String> provideClientId(HttpServletRequest req) {
|
||||
static Optional<String> provideOptionalClientId(HttpServletRequest req) {
|
||||
return extractOptionalParameter(req, PARAM_CLIENT_ID);
|
||||
}
|
||||
|
||||
@Provides
|
||||
@Parameter(PARAM_CLIENT_ID)
|
||||
static String provideClientId(HttpServletRequest req) {
|
||||
return extractRequiredParameter(req, PARAM_CLIENT_ID);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user