How are you authenticating the user? I have a setup very similar to yours
except that I have custom realm configured and its associated with the
securityManager bean. This handles the actual authentication.
<bean id="securityManager"
class="org.apache.shiro.web.mgt.DefaultWebSecurityManager">
<property name="realm" ref="siteRealm"/>
...
</bean>
<bean id="credentialsMatcher"
class="org.apache.shiro.authc.credential.Sha256CredentialsMatcher">
<property name="storedCredentialsHexEncoded" value="false"/>
<property name="hashIterations" value="1024"/>
</bean>
<bean id="siteRealm" class="MySiteRealm">
<property name="credentialsMatcher" ref="credentialsMatcher"/>
</bean>
The realm code looks something like this. The user/pass are stored in my
local store for each user.
public class MySiteRealm extends AuthorizingRealm
{
protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken
token) throws AuthenticationException {
User user = GET USER INFORMATION...
ByteSource salt = new
SimpleByteSource(Base64.decodeBase64(user.getSalt()));
return new SimpleAuthenticationInfo(user.getUsername(),
user.getPassword(), salt, REALM_NAME);
}
}
--
View this message in context:
http://shiro-user.582556.n2.nabble.com/submiting-a-form-username-password-with-shiro-spring-dont-work-tp6798692p6826557.html
Sent from the Shiro User mailing list archive at Nabble.com.