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
Just like all other parts of Vaadin, we also want the endpoints to use the VaadinRequest and VaadinResponse abstractions so that your endpoint logic can be the same regardless of whether the runtime environment is Servlet, Portlet or in the future maybe something like Netty.
VaadinRequest.getCurrent
is null in@Endpoint
s methods because they are handled by a different controller, it is causing user issues like is described in this comment https://vaadin.com/docs/v15/flow/typescript/configuring-security.htmlThere might be different solutions:
ThreadLocal
using the vaadinCurrentInstance
APIAt the same time update the wrong snippet in the documentation wich is wrong https://vaadin.com/docs/v15/flow/typescript/configuring-security.html#accessing-user-information-in-an-endpoint-method
The text was updated successfully, but these errors were encountered: