45
45
Flow flow.Flow `json:"flow"`
46
46
RequestHeaders http.Header `json:"request_headers"`
47
47
RequestMethod string `json:"request_method"`
48
- RequestUrl string `json:"request_url"`
48
+ RequestURL string `json:"request_url"`
49
49
Identity * identity.Identity `json:"identity,omitempty"`
50
50
}
51
51
@@ -81,7 +81,7 @@ func (e *WebHook) ExecuteLoginPreHook(_ http.ResponseWriter, req *http.Request,
81
81
Flow : flow ,
82
82
RequestHeaders : req .Header ,
83
83
RequestMethod : req .Method ,
84
- RequestUrl : req . RequestURI ,
84
+ RequestURL : x . RequestURL ( req ). String () ,
85
85
})
86
86
}
87
87
@@ -91,7 +91,7 @@ func (e *WebHook) ExecuteLoginPostHook(_ http.ResponseWriter, req *http.Request,
91
91
Flow : flow ,
92
92
RequestHeaders : req .Header ,
93
93
RequestMethod : req .Method ,
94
- RequestUrl : req . RequestURI ,
94
+ RequestURL : x . RequestURL ( req ). String () ,
95
95
Identity : session .Identity ,
96
96
})
97
97
}
@@ -102,7 +102,7 @@ func (e *WebHook) ExecutePostVerificationHook(_ http.ResponseWriter, req *http.R
102
102
Flow : flow ,
103
103
RequestHeaders : req .Header ,
104
104
RequestMethod : req .Method ,
105
- RequestUrl : req . RequestURI ,
105
+ RequestURL : x . RequestURL ( req ). String () ,
106
106
Identity : id ,
107
107
})
108
108
}
@@ -113,7 +113,7 @@ func (e *WebHook) ExecutePostRecoveryHook(_ http.ResponseWriter, req *http.Reque
113
113
Flow : flow ,
114
114
RequestHeaders : req .Header ,
115
115
RequestMethod : req .Method ,
116
- RequestUrl : req . RequestURI ,
116
+ RequestURL : x . RequestURL ( req ). String () ,
117
117
Identity : session .Identity ,
118
118
})
119
119
}
@@ -124,7 +124,7 @@ func (e *WebHook) ExecuteRegistrationPreHook(_ http.ResponseWriter, req *http.Re
124
124
Flow : flow ,
125
125
RequestHeaders : req .Header ,
126
126
RequestMethod : req .Method ,
127
- RequestUrl : req . RequestURI ,
127
+ RequestURL : x . RequestURL ( req ). String () ,
128
128
})
129
129
}
130
130
@@ -134,7 +134,7 @@ func (e *WebHook) ExecutePostRegistrationPrePersistHook(_ http.ResponseWriter, r
134
134
Flow : flow ,
135
135
RequestHeaders : req .Header ,
136
136
RequestMethod : req .Method ,
137
- RequestUrl : req . RequestURI ,
137
+ RequestURL : x . RequestURL ( req ). String () ,
138
138
Identity : id ,
139
139
})
140
140
}
@@ -145,7 +145,7 @@ func (e *WebHook) ExecutePostRegistrationPostPersistHook(_ http.ResponseWriter,
145
145
Flow : flow ,
146
146
RequestHeaders : req .Header ,
147
147
RequestMethod : req .Method ,
148
- RequestUrl : req . RequestURI ,
148
+ RequestURL : x . RequestURL ( req ). String () ,
149
149
Identity : session .Identity ,
150
150
})
151
151
}
@@ -156,7 +156,7 @@ func (e *WebHook) ExecuteSettingsPostPersistHook(_ http.ResponseWriter, req *htt
156
156
Flow : flow ,
157
157
RequestHeaders : req .Header ,
158
158
RequestMethod : req .Method ,
159
- RequestUrl : req . RequestURI ,
159
+ RequestURL : x . RequestURL ( req ). String () ,
160
160
Identity : id ,
161
161
})
162
162
}
@@ -165,7 +165,7 @@ func (e *WebHook) execute(ctx context.Context, data *templateContext) error {
165
165
span := trace .SpanFromContext (ctx )
166
166
attrs := map [string ]string {
167
167
"webhook.http.method" : data .RequestMethod ,
168
- "webhook.http.url" : data .RequestUrl ,
168
+ "webhook.http.url" : data .RequestURL ,
169
169
"webhook.http.headers" : fmt .Sprintf ("%#v" , data .RequestHeaders ),
170
170
}
171
171
0 commit comments