You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewError(`${this.name}: Event Broker requires your app to be bound to an IAS instance.`)
160
164
@@ -331,15 +335,19 @@ class EventBroker extends cds.MessagingService {
331
335
Object.assign(msg.headers,headers)
332
336
if(this.isMultitenancy)msg.tenant=tenant
333
337
334
-
// for cds.context.http
335
338
msg._={}
336
339
msg._.req=req
337
340
msg._.res=res
338
341
339
342
constcontext={user: cds.User.privileged,_: msg._}
340
343
if(msg.tenant)context.tenant=msg.tenant
341
344
342
-
awaitthis.tx(context,tx=>tx.emit(msg))
345
+
346
+
awaitthis.tx(context,tx=>{
347
+
if(cds.context.http?.req?.headers?.authorization)deletecds.context.http.req.headers.authorization// potential destination lookup fails if IAS token is used
0 commit comments