lastuser
lastuser copied to clipboard
Password expiry
Some client apps may need login sessions to be shorter than browser sessions for security reasons. LastUser should:
- Record the datetime when a user authenticated
- In an app's config, add an option for session duration
When a user logs into an app with a custom session duration and the user is already logged into LastUser, LastUser should:
- Verify that the login datetime is more recent than the app's session time and, if not,
- If the user logged in with a password, ask them to re-enter the password (alone), or logout and login again, or
- (this is iffy) If with an external service, indicate which one and ask them to authenticate again
Point 3 is iffy. OAuth services will return without showing any UI since there is an existing token for the current user and the lastuser app. Perhaps security-sensitive apps should insist on the user having a lastuser password before they are allowed to login.