Hello all,
I’m having some issues updating my Vaadin 14 app to v23, which is a stepping stone on the way to v24 as soon as v23 upgrade is done. (following the suggestion to update to v23 and then move to v24).
This app was originally build in Vaadin 6->7. Upgrade project was done last couple of years to migrate to Flow v14.
I could use some guidance I think on where to move some configuration items that we have in our custom DashboardUI that extends the UI.
Given the new bootstrap approach, this DashbaordUI is not being instantiated as the main UI in the application anymore it appears.
Previously, in our init(VaadinRequest) function, we were doing a few things and I’m not sure where to locate these to replicate the functionality in the new v23/v24 world.
- Would run a few actions such as populating client timezone into the session to use for i18n/l10n.
Would also query client locales (VaadinService.getCurrentRequest().getLocales()) and build language preferences.
- Cookies. (VaadinService.getCurrentRequest().getCookies())
Would process cookies and create a selected language cookie for future visits. (and in case this cookie is present, would retrieve the value)
- Guava event bus reference was created and held in UI for retrieval by application to handle user actions. (Need to move to other client based singleton).
We have a static ‘getEventBus()’ function in the extended UI class, to allow the application to get the event bus for the current user, nowing that the UI was one per user.
This one is the easiest to resolve. Just putting here for completeness.
- Would allocate some base session configurations. (Session timeouts etc on creation of UI).
- An incoming request query looking for a Paramter, that may hold a SSO SAML 2.0 token, to prepare for an incoming Single Sign On session.
Object samlToken = request.getParameter("SAML");
if (samlToken != null) {
session.setAttribute("SAML", samlToken);
}
I could really use some advice.
I’m not sure where to locate all these things. I’ve been reading through the upgrade guidance, and I can’t see discussion around where to perform these kind of things in the new v23/v24 world.
Particularly the SAML token query for an incoming request.
If the new UI that is getting created isn’t this one, where would I put something to be able to capture that incoming SAML token, to launch the SSO handling functionality?
(essentially just need to know where to query that first request to set the session attribute).
Thanks for your time, I appreciate any input.