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
When creating new Vaadin applications, I find myself repeatedly implementing the JWT-based "Remember Me" authentication functionality as described in Vaadin's blog post JWT authentication with Vaadin Flow. This pattern has become a standard practice in my projects due to the improved user experience it provides, allowing users to stay logged in between sessions without compromising security.
Currently, this functionality needs to be manually implemented in each new project, which requires additional development time and introduces the possibility of inconsistent implementations. Since this is a well-documented pattern that Vaadin themselves recommend, it would be beneficial to have it available as a built-in option when creating new projects through the start.vaadin.com app creator.
Describe the solution you'd like
I propose adding a "Remember Me Authentication" checkbox option to the project configuration screen at start.vaadin.com. This would work as follows:
On the final configuration screen before project download, add a new checkbox option in the security section labeled "Include JWT Remember Me Authentication"
When selected, the generated project would include:
The necessary JWT token handling classes
Cookie-based token storage implementation
Pre-configured security settings for token validation
The "Remember Me" checkbox in the login form. (optional, I never actually do this)
Basic configuration properties in application.properties for JWT secret and token expiration
This implementation would follow the pattern described in Vaadin's blog post about JWT authentication with Vaadin Flow, ensuring that developers can immediately leverage this functionality without having to manually implement it.
The option could be enabled by default when a user selects authentication in their project, or it could be presented as an additional opt-in feature. Either way, including this commonly-used pattern would save development time and promote consistent implementation of authentication best practices across Vaadin projects.
Describe alternatives you've considered
copy/paste from old projects
Additional context
No response
The text was updated successfully, but these errors were encountered:
IMO authentication related defaults in the platform (and generated project stubs) should be re-thought on other areas as well. E.g. remove username-password legacy and use passkeys only as the new default or move to rely on third party authorisation with OAuth2.
Related to this, I just checked with one of my demo apps that Spring Boot based (using Passkeys with Spring Security, without separate authorisation server), the good old receipe seems to drop just fine for that setup as well. I was about to get tired putting my fingerprint on the mac keyboard while developing, and then your ticket reminded me that Vaadin development don't have to be this frustrating 😅
Describe your motivation
When creating new Vaadin applications, I find myself repeatedly implementing the JWT-based "Remember Me" authentication functionality as described in Vaadin's blog post JWT authentication with Vaadin Flow. This pattern has become a standard practice in my projects due to the improved user experience it provides, allowing users to stay logged in between sessions without compromising security.
Currently, this functionality needs to be manually implemented in each new project, which requires additional development time and introduces the possibility of inconsistent implementations. Since this is a well-documented pattern that Vaadin themselves recommend, it would be beneficial to have it available as a built-in option when creating new projects through the start.vaadin.com app creator.
Describe the solution you'd like
I propose adding a "Remember Me Authentication" checkbox option to the project configuration screen at start.vaadin.com. This would work as follows:
This implementation would follow the pattern described in Vaadin's blog post about JWT authentication with Vaadin Flow, ensuring that developers can immediately leverage this functionality without having to manually implement it.
The option could be enabled by default when a user selects authentication in their project, or it could be presented as an additional opt-in feature. Either way, including this commonly-used pattern would save development time and promote consistent implementation of authentication best practices across Vaadin projects.
Describe alternatives you've considered
copy/paste from old projects
Additional context
No response
The text was updated successfully, but these errors were encountered: