...
Your application's session should extend wicket.authentication.AuthenticatedWebSession
from Wicket-auth-roles instead of Wicket's WebApplicationWebSession.
Notice that YourAppSession below functions as the bridge between Wicket and Acegi. There are 2 methodes that we will later use for signin/signout: authenticate
and signout
. Method getUser
is useful when you want to display the details of the user. Method getRoles
is used by Wicket-auth-roles to get the roles of the current user.
...