I´m getting the following error if I have more than 1 realm:
class io.buji.pac4j.subject.Pac4jPrincipal cannot be cast to class java.lang.String (io.buji.pac4j.subject.Pac4jPrincipal is in unnamed module of loader
Issue is here:
Shiro.ini
securityManager.realms = $pac4jRealm, $jdbcRealm, $tcRealm
Here my pom.xml
<pac4jVersion>5.7.7</pac4jVersion>
<bujiVersion>8.1.0</bujiVersion>
<jeePac4jVersion>7.1.0</jeePac4jVersion>
How can this be solved?
Is this a bug in the Pa4j library – why is it not converted to String?
Let me know if you need more information.
This might be a bug in the buji-pac4j
library. Can you copy/paste the full stack trace of the exception?
5