Front end login failed

I have generated front end for my application. Assigned rest-api-access role to admin but login failed in front end.

I created new role in security score rest and given all permission to it. Even user assigned to this role can’t login to front end.

Do I have to setup anything else.

regards

Umesh

PS- project is migrated from 7.1 and working in generic.

The problem solved by adding cuba.security.rolesPolicyVersion =2. Is it not default?

It’s the default for new projects created with CUBA 7.2 or newer.