in my jdbc-user-service then my form always gives me 'bad credentials'. I've checked it triple t" /> in my jdbc-user-service then my form always gives me 'bad credentials'. I've checked it triple t" /> in my jdbc-user-service then my form always gives me 'bad credentials'. I've checked it triple t"/>

Do I strictly need authorities for user-service in Spring?

255 Views Asked by At

If I remove

<authorities-by-username-query="myquery"> 

in my jdbc-user-service then my form always gives me 'bad credentials'. I've checked it triple times , I cannot authorize person without giving him at least one authority?

1

There are 1 best solutions below

0
adam2510 On BEST ANSWER

the idea is that all users should have an authority to determine what pages/links a user should access

if you only have users, Set the render for the authority field in the view to false and then tell the controller to always set the role as "ROLE_USER"