Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.1.0
-
None
-
None
Description
This was discussed on the mailing list and my point is:
The javadoc says "A null return value means that no account could be associated with the specified token." and "@throws org.apache.shiro.authc.AuthenticationException if there is an error acquiring data or performing realm-specific authentication logic for the specified <tt>token</tt>". The only way that would be acceptable is if we say that no user in the database is "an error acquiring data" which seems a bit stretched.
This causes confusion and may result in errors for someone implementing a Strategy or Authenticator who would not expect such behaviour.