mirror of
https://github.com/google/nomulus
synced 2026-02-13 00:02:04 +00:00
Add FlowMetadata (containing isSuperuser) to custom flow logic
This also bypasses signed mark validation during domain creation if the flow is being executed as superuser. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=145435268
This commit is contained in:
committed by
Ben McIlwain
parent
d5160213e5
commit
f3388326d6
@@ -14,6 +14,7 @@
|
||||
|
||||
package google.registry.flows.custom;
|
||||
|
||||
import google.registry.flows.FlowMetadata;
|
||||
import google.registry.flows.SessionMetadata;
|
||||
import google.registry.model.eppinput.EppInput;
|
||||
|
||||
@@ -25,10 +26,13 @@ public abstract class BaseFlowCustomLogic {
|
||||
|
||||
private final EppInput eppInput;
|
||||
private final SessionMetadata sessionMetadata;
|
||||
private final FlowMetadata flowMetadata;
|
||||
|
||||
protected BaseFlowCustomLogic(EppInput eppInput, SessionMetadata sessionMetadata) {
|
||||
protected BaseFlowCustomLogic(
|
||||
EppInput eppInput, SessionMetadata sessionMetadata, FlowMetadata flowMetadata) {
|
||||
this.eppInput = eppInput;
|
||||
this.sessionMetadata = sessionMetadata;
|
||||
this.flowMetadata = flowMetadata;
|
||||
}
|
||||
|
||||
protected EppInput getEppInput() {
|
||||
@@ -38,4 +42,8 @@ public abstract class BaseFlowCustomLogic {
|
||||
protected SessionMetadata getSessionMetadata() {
|
||||
return sessionMetadata;
|
||||
}
|
||||
|
||||
protected FlowMetadata getFlowMetadata() {
|
||||
return flowMetadata;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user