GUACAMOLE-393: Add session invalidation hooks to AuthenticatedUser.

This commit is contained in:
Michael Jumper
2017-05-29 19:03:42 -07:00
parent b90a989463
commit c20457f89b
4 changed files with 20 additions and 0 deletions

View File

@@ -29,4 +29,9 @@ public abstract class AbstractAuthenticatedUser extends AbstractIdentifiable
// Prior functionality now resides within AbstractIdentifiable
@Override
public void invalidate() {
// Nothing to invalidate
}
}

View File

@@ -49,4 +49,11 @@ public interface AuthenticatedUser extends Identifiable {
*/
Credentials getCredentials();
/**
* Invalidates this authenticated user and their associated token such that
* they are no longer logged in. This function will be automatically
* invoked when the user logs out, or when their session expires.
*/
void invalidate();
}