disable apache shiro remember me function

This commit is contained in:
Sebastian Sdorra
2015-03-21 17:03:23 +01:00
parent 63fb1f23e9
commit fd683dd6b4
5 changed files with 136 additions and 32 deletions

View File

@@ -143,7 +143,6 @@ public class AuthenticationResource
* @param response current http response
* @param username the username for the authentication
* @param password the password for the authentication
* @param rememberMe true to remember the user across sessions
* @param cookie create authentication token
*
* @return
@@ -155,8 +154,7 @@ public class AuthenticationResource
@Context HttpServletResponse response,
@FormParam("username") String username,
@FormParam("password") String password, @FormParam("rememberMe")
@DefaultValue("false") boolean rememberMe, @QueryParam(
"cookie") boolean cookie)
@QueryParam("cookie") boolean cookie)
{
Preconditions.checkArgument(!Strings.isNullOrEmpty(username),
"username parameter is required");
@@ -169,7 +167,7 @@ public class AuthenticationResource
try
{
subject.login(Tokens.createAuthenticationToken(request, username,
password, rememberMe));
password));
User user = subject.getPrincipals().oneByType(User.class);