Issue Details (XML | Word | Printable)

Key: JS2-239
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Ate Douma
Reporter: Ate Douma
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Jetspeed 2

Improved feedback on Login failure

Created: 24/Apr/05 08:10 PM   Updated: 24/Apr/05 09:47 PM
Return to search
Component/s: Security
Affects Version/s: 2.0-M2
Fix Version/s: 2.0-M3

Time Tracking:
Not Specified

Issue Links:
Reference
 

Resolution Date: 24/Apr/05 09:47 PM


 Description  « Hide
The LoginPortlet currently displays a simple error message on a failed login.
Although the number of invalid attempts is displayed it's confusing because that is *not* related to the
number of authenticationFailures for a specific UserPrincipal.

I'll provide a new LoginValidationValve implementation which checks if an failed login attempt occurred.
In that case, the real cause of the failure is determined and an errorCode is saved in the request so the
LoginPortlet can provide a sensible response to the user.
These error codes are defined in the LoginConstants interface and with the i18n language bundle already used
by the LoginPortlet the required message to be displayed can be looked up.

If the InternalPasswordCredentialStateHandlingInterceptor is used (as it is in the default configuration), its maxNumberOfLoginFailureAttempts can be passed on to the LoginValidationValve implementation to allow
warning message to the user when only one last login attempt is possible before the PasswordCredential will
be disabled.
To be able to give this feedback, the PasswordCredential interface will be extended (as well as the default
implementation) to include the authenticationFailures from the InternalCredential.

This solution will provide at least one part of the JS2-215 issue (more/correct feedback on login failures).
The other features or JS2-215 (email notification, disabled account creation by an end user itself) still have to be addressed though.

The LoginConstants interface currently is defined in the Jetspeed commons project and I'm going to move it
to the Jetspeed-API project as I think it really belongs there. This shouldn't have any impact on any
custom login implementation as that would need the Jetspeed-API already too.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Ate Douma added a comment - 24/Apr/05 08:12 PM
Resolves part of JS2-215 features (more/correct feedback on login failures)

Ate Douma made changes - 24/Apr/05 08:12 PM
Field Original Value New Value
Link This issue relates to JS2-215 [ JS2-215 ]
Ate Douma added a comment - 24/Apr/05 09:47 PM
Done

Ate Douma made changes - 24/Apr/05 09:47 PM
Status Open [ 1 ] Closed [ 6 ]
Resolution Fixed [ 1 ]