Description
Error :
java.lang.ClassCastException: class java.lang.String cannot be cast to class org.springframework.security.authentication.AnonymousAuthenticationToken
// AppUser user = (AppUser) authentication.getPrincipal();
This line has some type casting error exception when running the two factor mode.
To enable two factor mode you need to run with -Psecurity=twofactor
Attachments
Issue Links
- duplicates
-
FINERACT-1136 Backport Two Factor Auth Filter Type Cast Error to release branch 1.4.0
- Resolved
- links to