mirror of
https://github.com/google/nomulus.git
synced 2025-06-27 06:44:51 +02:00
Decouple superuser from SessionMetadata
Superuser should only be settable via the tool (see [] which is merged in here but not diffbased, and which removes the implicit superuser for CharlestonRoad). It is a property of the request, not of the session (there are no sessions in the tool). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=125204707
This commit is contained in:
parent
e359ab5f52
commit
fd6c4888db
44 changed files with 80 additions and 136 deletions
|
@ -39,8 +39,8 @@ import javax.servlet.http.HttpServletRequest;
|
|||
public class EppToolAction implements Runnable {
|
||||
|
||||
@Inject @Parameter("clientIdentifier") String clientIdentifier;
|
||||
@Inject @Parameter("superuser") boolean superuser;
|
||||
@Inject @Parameter("dryRun") boolean dryRun;
|
||||
@Inject @Parameter("superuser") boolean isSuperuser;
|
||||
@Inject @Parameter("dryRun") boolean isDryRun;
|
||||
@Inject @Parameter("xml") String xml;
|
||||
@Inject EppRequestHandler eppRequestHandler;
|
||||
@Inject EppToolAction() {}
|
||||
|
@ -50,11 +50,11 @@ public class EppToolAction implements Runnable {
|
|||
eppRequestHandler.executeEpp(
|
||||
new StatelessRequestSessionMetadata(
|
||||
clientIdentifier,
|
||||
superuser,
|
||||
ProtocolDefinition.getVisibleServiceExtensionUris(),
|
||||
SessionSource.TOOL),
|
||||
new PasswordOnlyTransportCredentials(),
|
||||
dryRun,
|
||||
isDryRun,
|
||||
isSuperuser,
|
||||
xml.getBytes(UTF_8));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue