Hi all, First post here, so please feel free to redirect me if this is the wrong forum.
I have created an AuthorizationHeaderToken that implements AuthenticationToken, effectively as a worker for any (or at least some) of the Authorization schemes. The idea here is that the tokens deal with the decoding of principal / credential (as appropriate to the scheme). I then promptly ran into: "Realm [org.apache.shiro.realm.jdbc.JdbcRealm@33d11db1] does not support authentication token [com.example.authentication.AuthorizationHeaderToken@13f86c12]. Please ensure that the appropriate Realm implementation is configured correctly or that the realm accepts AuthenticationTokens of this type." Some further digging revealed that Jdbc realm is indeed wired to use only UsernamePasswordToken, but offers getter/setter methods to configure token. However, the setter method requires a Class type as its argument, and I'm not aware of any way to achieve this from the .ini file (i.e. I don't think beanutils supports this). Any pointers, or am I into custom realm territory as well... Thanks Paul -- View this message in context: http://shiro-user.582556.n2.nabble.com/Setting-realm-authenticationTokenClass-from-ini-file-tp7579043.html Sent from the Shiro User mailing list archive at Nabble.com.
