viadeo / kasper-framework

Kasper is the treasure keeper
http://kasper-doc.viadeo.com/kasper-framework/latest/
GNU Lesser General Public License v3.0
9 stars 6 forks source link

Inject UserID in event context coming from http request #351

Closed sl-fredericdalessandro closed 2 years ago

sl-fredericdalessandro commented 8 years ago

Events coming from legacy are not sending userID but only securityToken and HttpInterceptors are not injecting userID. This can cause problem for developers using context.getUserID without knowing that such case may happen.

Plus, if we send an event within a listener called by the legacy it's context is enriched with userID. This is very confusing.

So, event bus could have the same behaviour than query/command gateway and enrich context with userID directly from the http layer.

sl-fredericdalessandro commented 8 years ago

@ecamper as tu fais un fix coté plateforme ?

ecamper commented 8 years ago

non pas encore...