vaadin / sso-kit

Other
10 stars 2 forks source link

Flow's ViewAccessChecker has been replaced with NavigationAccessControl #130

Closed heruan closed 9 months ago

heruan commented 9 months ago

In Flow 24.3 ViewAccessChecker has been replaced with NavigationAccessControl and the method VaadinWebSecurity::getViewAccessChecker has been marked deprecated and now throws a UnsuppertedOperationException.

To fix this we need to replace the call to getViewAccessChecker() with getNavigationAccessControl().

mcollovati commented 9 months ago

VaadinWebSecurity implementation has been changed to be compatible with previous versions. The getViewAccessChecker method now returns a implementation that delegates to NavigationAccessControl.

A warning message is logged when the method is called.

Anyway, its usage should be replaced because the method will be removed in the future