[
https://issues.apache.org/jira/browse/FINERACT-1120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Saransh Sharma updated FINERACT-1120:
-------------------------------------
Description:
Error :
java.lang.ClassCastException: class java.lang.String cannot be cast to class
org.springframework.security.authentication.AnonymousAuthenticationToken
{code:java}
// AppUser user = (AppUser) authentication.getPrincipal();
{code}
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
was:
{code:java}
// AppUser user = (AppUser) authentication.getPrincipal();
{code}
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
> Two Factor Auth Filter Type Cast Error
> --------------------------------------
>
> Key: FINERACT-1120
> URL: https://issues.apache.org/jira/browse/FINERACT-1120
> Project: Apache Fineract
> Issue Type: Bug
> Affects Versions: 1.4.0
> Reporter: Saransh Sharma
> Priority: Major
> Fix For: 1.4.0
>
>
> Error :
> java.lang.ClassCastException: class java.lang.String cannot be cast to class
> org.springframework.security.authentication.AnonymousAuthenticationToken
> {code:java}
> // AppUser user = (AppUser) authentication.getPrincipal();
> {code}
> 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
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)