Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-1120

Two Factor Auth Filter Type Cast Error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0
    • 1.5.0
    • Security

    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

          Activity

            People

              fynmanoj Manoj Mohanan
              saransh Saransh Sharma
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: