Commit da95e1ab6ae938893f197bf1d778ce7786c147e3
1 parent
38aba6bf
Exists in
master
Definindo a mensagem conforme a exception
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
impl/extension/rest/src/main/java/br/gov/frameworkdemoiselle/security/AbstractHTTPAuthorizationFilter.java
... | ... | @@ -92,7 +92,7 @@ public abstract class AbstractHTTPAuthorizationFilter implements Filter { |
92 | 92 | chain.doFilter(request, response); |
93 | 93 | performLogout(request, response); |
94 | 94 | |
95 | - } catch (InvalidCredentialsException cause) { | |
95 | + } catch (AuthenticationException cause) { | |
96 | 96 | // String message = getBundle().getString(cause.getMessage()); |
97 | 97 | getLogger().log(FINE, cause.getMessage(), cause); |
98 | 98 | setUnauthorizedStatus(response, cause); | ... | ... |